|
LRAUV
revA
|
A Logger Rule which specifies either data writes or data reads. More...
#include <LoggerRules.h>


Public Member Functions | |
| DataWriteRule (bool dataWrite) | |
| virtual | ~DataWriteRule (void) |
| virtual bool | check (const LogEntry *entry) |
| Does this rule match this LogEntry. More... | |
| virtual Str | toString (void) |
| Serialize this Rule to a Str. More... | |
Public Member Functions inherited from Rule | |
| virtual | ~Rule (void) |
| Destructor. More... | |
| virtual void | activate () |
| virtual void | deactivate () |
| virtual bool | isActive () |
Private Attributes | |
| bool | dataWrite_ |
| The LogEntry type we're looking for. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Rule | |
| Rule (void) | |
| Protected constructor for pure virtual class. More... | |
A Logger Rule which specifies either data writes or data reads.
If the DataEntry corresponds to a write event and the specified dataWrite entry was true, then DataWriteRule returns true. Likewise, if the DataEntry corresponds to a read event and the specified dataWrite entry was false, then DataWriteRule returns true. Otherwise, DataWriteRule returns false.
It is not necessary to use a TypeRule with this rule, as this rule only accepts DataEntry items.
| DataWriteRule::DataWriteRule | ( | bool | dataWrite | ) |
|
virtual |
|
virtual |
Does this rule match this LogEntry.
Implements Rule.
Reimplemented in DataNameRule.
References LogEntry::DATA_LOG_ENTRY, dataWrite_, LogEntry::getType(), and DataEntry::isDataWrite().
Referenced by DataNameRule::check().
|
virtual |
Implements Rule.
Reimplemented in DataNameRule.
References dataWrite_.
Referenced by DataNameRule::toString().
|
private |
The LogEntry type we're looking for.
Referenced by check(), and toString().