xlog::LogLevel Class Reference

Log level base class. More...

#include <levels.h>

List of all members.

Public Member Functions

virtual ~LogLevel ()
 Destructor.
virtual bool operator== (std::string const &name) const
 Checks for log level match.
virtual char const * header () const
 Returns the log level header.


Detailed Description

This class is the ancestor to all log level classes.

The operator==() method must be overriden in derived classes. The header() method may be overriden too.


Member Function Documentation

virtual char const* xlog::LogLevel::header  )  const [inline, virtual]
 

Returns the log level header, that identifies the log level in a human-friendly way and may or may not be logged as a header to log messages by log modules.

Returns:
The log level header (must be non-NULL).

virtual bool xlog::LogLevel::operator== std::string const &  name  )  const [inline, virtual]
 

Checks whether a given name matches with the name of this log level or any of the class ancestor names.

Derived classes must call the inherited method (the LogLevel implementation matches the name "*").

Parameters:
[in] name The name to check.
Returns:
true if the name matches, false otherwise.


The documentation for this class was generated from the following file:
Generated on Sun May 20 21:32:23 2007 for Epona API by  doxygen 1.4.6