LRAUV  revA
DataNameRule Class Reference

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>

Inheritance diagram for DataNameRule:
Collaboration diagram for DataNameRule:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

DataNameRule::DataNameRule ( const Str dataName,
bool  dataWrite = true 
)
DataNameRule::~DataNameRule ( void  )
virtual

Member Function Documentation

Str DataNameRule::toString ( void  )
virtual

Serialize this Rule to a Str.

Reimplemented from DataWriteRule.

References dataName_, and DataWriteRule::toString().

Member Data Documentation

unsigned short DataNameRule::code_
private

Referenced by check().

const Str DataNameRule::dataName_
private

Referenced by check(), and toString().

unsigned int DataNameRule::slateElementURICount_
private

Referenced by check().


The documentation for this class was generated from the following files: