LRAUV  revA
EventTypeRule Class Reference

A Logger Rule which matches against a given LogEvent::EventEntry. More...

#include <LoggerRules.h>

Inheritance diagram for EventTypeRule:
Collaboration diagram for EventTypeRule:

Public Member Functions

 EventTypeRule (EventEntry::EventType eventIn)
 
virtual ~EventTypeRule (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

EventEntry::EventType eventType_
 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 Logger Rule which matches against a given LogEvent::EventEntry.

Multiple EventEntry::Action values may be mathematically added together

It is not necessary to use a TypeRule with this rule, as this rule only accepts EventEntry items.

Constructor & Destructor Documentation

EventTypeRule::EventTypeRule ( EventEntry::EventType  eventIn)
EventTypeRule::~EventTypeRule ( void  )
virtual

Member Function Documentation

bool EventTypeRule::check ( const LogEntry entry)
virtual

Does this rule match this LogEntry.

Implements Rule.

References LogEntry::EVENT_LOG_ENTRY, eventType_, EventEntry::getEventType(), and LogEntry::getType().

Str EventTypeRule::toString ( void  )
virtual

Serialize this Rule to a Str.

Implements Rule.

References eventType_, and EventEntry::EventTypeToString().

Member Data Documentation

EventEntry::EventType EventTypeRule::eventType_
private

The LogEntry type we're looking for.

Referenced by check(), and toString().


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