NetResponsibility

class Warnings

Library: Net Responsibility
Package: Core
Header: Warnings.h

Description

Warnings is able to store all inappropriate URLs and useful additional info Iterate through it as with History.

Inheritance

Direct Base Classes: History

All Base Classes: History

Member Summary

Member Functions: addRow, getAbbrUrl, getBoldUrl, getKeywords, getStrength, setRows, size

Inherited Functions: addRow, getDate, getDateTime, getHostname, getIndex, getPath, getTime, getUrl, hasMore, next, previous, setRows

Constructors

Warnings

Warnings();

Destructor

~Warnings virtual

virtual ~Warnings();

Member Functions

addRow

void addRow(
    HistoryRow,
    BlacklistMatch
);

Add one HistoryRow and BlacklistMatch

getAbbrUrl

string getAbbrUrl() const;

Returns the current abbreviated url, with matches emphasized

getAbbrUrl

string getAbbrUrl(
    int index
) const;

Returns the abbreviated url of index, with matches emphasized

getBoldUrl

string getBoldUrl() const;

Returns the current bold url, with matches emphasized

getBoldUrl

string getBoldUrl(
    int index
) const;

Returns the bold url of index, with matches emphasized

getKeywords

vector < BlacklistKeyword > getKeywords() const;

Returns all current BlacklistKeywords

getKeywords

vector < BlacklistKeyword > getKeywords(
    int index
) const;

Returns all BlacklistKeywords of index

getStrength

int getStrength() const;

Returns the current strength.

getStrength

int getStrength(
    int index
) const;

Returns the strength of index

setRows

void setRows(
    vector < HistoryRow,
    allocator < HistoryRow > > & rows,
    vector < BlacklistMatch,
    allocator < BlacklistMatch > > & matches
);

Set HistoryRows and BlacklistMatches

size

int size() const;

Returns the number of Warnings found

Variables

_blacklistMatches protected

vector < BlacklistMatch, allocator < BlacklistMatch > > _blacklistMatches;