LRAUV  revA
OrRule Class Reference

A logging Rule implementing a logical OR() between two other rules. More...

#include <LoggerRules.h>

Inheritance diagram for OrRule:
Collaboration diagram for OrRule:

Public Member Functions

 OrRule (Rule *ruleOneIn, Rule *ruleTwoIn, Rule *ruleThreeIn=NULL, Rule *ruleFourIn=NULL, Rule *ruleFiveIn=NULL)
 
virtual ~OrRule (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 Member Functions

 OrRule (const OrRule &old)
 

Private Attributes

RuleruleOne_
 
RuleruleTwo_
 
RuleruleThree_
 
RuleruleFour_
 
RuleruleFive_
 

Additional Inherited Members

- Protected Member Functions inherited from Rule
 Rule (void)
 Protected constructor for pure virtual class. More...
 

Detailed Description

A logging Rule implementing a logical OR() between two other rules.

Constructor & Destructor Documentation

OrRule::OrRule ( Rule ruleOneIn,
Rule ruleTwoIn,
Rule ruleThreeIn = NULL,
Rule ruleFourIn = NULL,
Rule ruleFiveIn = NULL 
)
OrRule::~OrRule ( void  )
virtual
OrRule::OrRule ( const OrRule old)
private

Member Function Documentation

bool OrRule::check ( const LogEntry entry)
virtual

Does this rule match this LogEntry.

Implements Rule.

References Rule::check(), ruleFive_, ruleFour_, ruleOne_, ruleThree_, and ruleTwo_.

Str OrRule::toString ( void  )
virtual

Serialize this Rule to a Str.

Implements Rule.

References ruleFive_, ruleFour_, ruleOne_, ruleThree_, ruleTwo_, and Rule::toString().

Member Data Documentation

Rule * OrRule::ruleFive_
private

Referenced by check(), toString(), and ~OrRule().

Rule * OrRule::ruleFour_
private

Referenced by check(), toString(), and ~OrRule().

Rule* OrRule::ruleOne_
private

Referenced by check(), toString(), and ~OrRule().

Rule * OrRule::ruleThree_
private

Referenced by check(), toString(), and ~OrRule().

Rule * OrRule::ruleTwo_
private

Referenced by check(), toString(), and ~OrRule().


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