LRAUV  revA
LogAssociation Class Reference

Handles one mapping between a set of log entry criteria and an LogWriter. More...

#include <LogAssociation.h>

Collaboration diagram for LogAssociation:

Public Member Functions

 LogAssociation (LogWriter *writerIn, Rule *ruleIn)
 Constructor. More...
 
 ~LogAssociation ()
 Destructor. More...
 
void resetInputs ()
 Reset cached input settings associated with LogWriter. More...
 
bool matchAndProcess (LogEntry *entry)
 Check whether my rules cover a logEntry, write it if applicable. More...
 
void endCycle ()
 Do what needs to be done at the end of a cycle. More...
 
void configLogWriter (Logger &sysLogger)
 Configure logWriter. More...
 
void writeFooter ()
 Call logWriter::writeFooter. More...
 
RulegetRule () const
 
LogWritergetWriter () const
 
void setWriter (LogWriter *writer)
 

Private Member Functions

 LogAssociation (const LogAssociation &old)
 

Private Attributes

LogWriterwriter_
 
Rulerule_
 
bool wroteInCycle_
 

Detailed Description

Handles one mapping between a set of log entry criteria and an LogWriter.

Constructor & Destructor Documentation

LogAssociation::LogAssociation ( LogWriter writerIn,
Rule ruleIn 
)

Constructor.

References LogWriter::addParent(), and writer_.

LogAssociation::~LogAssociation ( void  )
LogAssociation::LogAssociation ( const LogAssociation old)
private

Member Function Documentation

void LogAssociation::configLogWriter ( Logger sysLogger)

Configure logWriter.

References LogWriter::config(), and writer_.

void LogAssociation::endCycle ( )

Do what needs to be done at the end of a cycle.

References LogWriter::endCycle(), writer_, and wroteInCycle_.

Rule* LogAssociation::getRule ( ) const
inline

References rule_.

bool LogAssociation::matchAndProcess ( LogEntry entry)

Check whether my rules cover a logEntry, write it if applicable.

Parameters
entryThe LogEntry to consider
Returns
true is the LogEntry was processed

References Rule::check(), Rule::isActive(), LogWriter::isActive(), rule_, LogWriter::write(), writer_, and wroteInCycle_.

void LogAssociation::resetInputs ( )

Reset cached input settings associated with LogWriter.

References LogWriter::resetInputs(), and writer_.

void LogAssociation::setWriter ( LogWriter writer)
inline

References writer_.

void LogAssociation::writeFooter ( )

Call logWriter::writeFooter.

References LogWriter::writeFooter(), and writer_.

Member Data Documentation

Rule* LogAssociation::rule_
private
bool LogAssociation::wroteInCycle_
private

Referenced by endCycle(), and matchAndProcess().


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