class Bypasses

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

Description

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 Summary

Member Functions: addRow, clear, getDate, getDateTime, getDetails, getIndex, getRows, getTime, getType, getTypeString, hasMore, next, previous, setRows, size

Constructors

Bypasses

Bypasses();

Destructor

~Bypasses virtual

virtual ~Bypasses();

Member Functions

addRow

void addRow(
    BypassRow
);

addRow

void addRow(
    int type,
    string details = ""
);

Add a row by giving its BypassType and details.

clear

void clear();

Clear out all _bypassRows.

getDate

Timestamp getDate() const;

getDate

Timestamp getDate(
    int index
) const;

getDateTime

string getDateTime(
    string fmt
) const;

Returns a DateTime string formatted as specified in fmt.

getDateTime

string getDateTime(
    string fmt,
    int index
) const;

getDateTime

Timestamp getDateTime() const;

getDateTime

Timestamp getDateTime(
    int index
) const;

getDetails

string getDetails() const;

getDetails

string getDetails(
    int index
) const;

getIndex

int getIndex() const;

Returns the index of the current BypassRow. This may be used to access this specific element later.

getRows

vector < BypassRow > getRows() const;

Get all _bypassRows inside a vector.

getTime

Timestamp getTime() const;

getTime

Timestamp getTime(
    int index
) const;

getType

int getType() const;

Returns the type given as BypassType.

getType

int getType(
    int index
) const;

getTypeString

string getTypeString() const;

Returns a message that tries to explain what type of bypass it is. These messages are loaded from the txtfile.

getTypeString

string getTypeString(
    int index
) const;

hasMore

bool hasMore() const;

Returns true if Bypasses contains more elements to iterate through.

next

void next();

previous

void previous();

setRows

void setRows(
    vector < BypassRow,
    allocator < BypassRow > > & rows
);

size

int size() const;

Variables

_bypassRows protected

vector < BypassRow, allocator < BypassRow > > _bypassRows;

All BypassRows stored in a vector.

_index protected

int _index;

The current index.