Library: Net Responsibility
Package: Core
Header: Bypasses.h
Bypasses is able to store all useful information about attempts to bypass the software. All Bypasses will show up in the bypass section in the report.
Bypasses is iterated through in a similar manner as History.
Member Functions: addRow, clear, getDate, getDateTime, getDetails, getIndex, getRows, getTime, getType, getTypeString, hasMore, next, previous, setRows, size
Bypasses();
virtual ~Bypasses();
void addRow(
BypassRow
);
void addRow(
int type,
string details = ""
);
Add a row by giving its BypassType and details.
void clear();
Clear out all _bypassRows.
Timestamp getDate() const;
Timestamp getDate(
int index
) const;
string getDateTime(
string fmt
) const;
Returns a DateTime string formatted as specified in fmt.
string getDateTime(
string fmt,
int index
) const;
Timestamp getDateTime() const;
Timestamp getDateTime(
int index
) const;
string getDetails() const;
string getDetails(
int index
) const;
int getIndex() const;
Returns the index of the current BypassRow. This may be used to access this specific element later.
vector < BypassRow > getRows() const;
Get all _bypassRows inside a vector.
Timestamp getTime() const;
Timestamp getTime(
int index
) const;
int getType() const;
Returns the type given as BypassType.
int getType(
int index
) const;
string getTypeString() const;
Returns a message that tries to explain what type of bypass it is. These messages are loaded from the txtfile.
string getTypeString(
int index
) const;
bool hasMore() const;
Returns true if Bypasses contains more elements to iterate through.
void next();
void previous();
void setRows(
vector < BypassRow,
allocator < BypassRow > > & rows
);
int size() const;
vector < BypassRow, allocator < BypassRow > > _bypassRows;
All BypassRows stored in a vector.
int _index;
The current index.