|
LRAUV
revA
|
Handles one mapping between a set of log entry criteria and an LogWriter. More...
#include <LogAssociation.h>

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... | |
| Rule * | getRule () const |
| LogWriter * | getWriter () const |
| void | setWriter (LogWriter *writer) |
Private Member Functions | |
| LogAssociation (const LogAssociation &old) | |
Private Attributes | |
| LogWriter * | writer_ |
| Rule * | rule_ |
| bool | wroteInCycle_ |
Handles one mapping between a set of log entry criteria and an LogWriter.
Constructor.
References LogWriter::addParent(), and writer_.
| LogAssociation::~LogAssociation | ( | void | ) |
Destructor.
References LogWriter::getParentCount(), LogWriter::removeParent(), rule_, and writer_.
|
private |
| 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_.
|
inline |
| bool LogAssociation::matchAndProcess | ( | LogEntry * | entry | ) |
Check whether my rules cover a logEntry, write it if applicable.
| entry | The LogEntry to consider |
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::writeFooter | ( | ) |
Call logWriter::writeFooter.
References LogWriter::writeFooter(), and writer_.
|
private |
Referenced by getRule(), matchAndProcess(), and ~LogAssociation().
|
private |
Referenced by configLogWriter(), endCycle(), getWriter(), LogAssociation(), matchAndProcess(), resetInputs(), setWriter(), writeFooter(), and ~LogAssociation().
|
private |
Referenced by endCycle(), and matchAndProcess().