LRAUV  revA
TypeRule Class Reference

A logging Rule which matches against a given LogEntry::Type. More...

#include <LoggerRules.h>

Inheritance diagram for TypeRule:
Collaboration diagram for TypeRule:

Public Member Functions

 TypeRule (LogEntry::Type typeIn)
 
virtual ~TypeRule (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

LogEntry::Type type_
 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...
 

Detailed Description

A logging Rule which matches against a given LogEntry::Type.

Constructor & Destructor Documentation

TypeRule::TypeRule ( LogEntry::Type  typeIn)
TypeRule::~TypeRule ( void  )
virtual

Member Function Documentation

bool TypeRule::check ( const LogEntry entry)
virtual

Does this rule match this LogEntry.

Implements Rule.

References LogEntry::getType(), and type_.

Str TypeRule::toString ( void  )
virtual

Serialize this Rule to a Str.

Implements Rule.

References type_, and LogEntry::TypeToString().

Member Data Documentation

LogEntry::Type TypeRule::type_
private

The LogEntry type we're looking for.

Referenced by check(), and toString().


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