Library: Net Responsibility
Package: Core
Header: Warnings.h
Warnings is able to store all inappropriate URLs and useful additional info Iterate through it as with History.
Direct Base Classes: History
All Base Classes: History
Member Functions: addRow, getAbbrUrl, getBoldUrl, getKeywords, getStrength, setRows, size
Inherited Functions: addRow, getDate, getDateTime, getHostname, getIndex, getPath, getTime, getUrl, hasMore, next, previous, setRows
Warnings();
virtual ~Warnings();
void addRow(
HistoryRow,
BlacklistMatch
);
Add one HistoryRow and BlacklistMatch
string getAbbrUrl() const;
Returns the current abbreviated url, with matches emphasized
string getAbbrUrl(
int index
) const;
Returns the abbreviated url of index, with matches emphasized
string getBoldUrl() const;
Returns the current bold url, with matches emphasized
string getBoldUrl(
int index
) const;
Returns the bold url of index, with matches emphasized
vector < BlacklistKeyword > getKeywords() const;
Returns all current BlacklistKeywords
vector < BlacklistKeyword > getKeywords(
int index
) const;
Returns all BlacklistKeywords of index
int getStrength() const;
Returns the current strength.
int getStrength(
int index
) const;
Returns the strength of index
void setRows(
vector < HistoryRow,
allocator < HistoryRow > > & rows,
vector < BlacklistMatch,
allocator < BlacklistMatch > > & matches
);
Set HistoryRows and BlacklistMatches
int size() const;
Returns the number of Warnings found
vector < BlacklistMatch, allocator < BlacklistMatch > > _blacklistMatches;