|
LRAUV
revA
|
A Logger Rule which specifies either data writes or data reads using an element with an ElementURI matching the supplied name If dataName should be deleted (by delete[]) by the destructor, then delteName should be true; If the DataEntry corresponds to a write event and the specified dataWrite entry was true, then DataWriteRule returns true. More...
#include <LoggerRules.h>


Public Member Functions | |
| DataNameRule (const Str &dataName, bool dataWrite=true) | |
| virtual | ~DataNameRule (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 DataWriteRule | |
| DataWriteRule (bool dataWrite) | |
| virtual | ~DataWriteRule (void) |
Public Member Functions inherited from Rule | |
| virtual | ~Rule (void) |
| Destructor. More... | |
| virtual void | activate () |
| virtual void | deactivate () |
| virtual bool | isActive () |
Private Attributes | |
| const Str | dataName_ |
| unsigned short | code_ |
| unsigned int | slateElementURICount_ |
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 using an element with an ElementURI matching the supplied name If dataName should be deleted (by delete[]) by the destructor, then delteName should be true; 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.
| DataNameRule::DataNameRule | ( | const Str & | dataName, |
| bool | dataWrite = true |
||
| ) |
|
virtual |
|
virtual |
Does this rule match this LogEntry.
Reimplemented from DataWriteRule.
References DataWriteRule::check(), code_, dataName_, Slate::FindElementURI(), ElementURI::getCode(), DataEntry::getDataAccess(), DataAccess::getElementCode(), Slate::GetElementURICount(), DataAccess::getUniversalCode(), DataEntry::isBest(), ElementURI::NO_CODE, and slateElementURICount_.
|
virtual |
Reimplemented from DataWriteRule.
References dataName_, and DataWriteRule::toString().
|
private |
Referenced by check().
|
private |
Referenced by check(), and toString().
|
private |
Referenced by check().