#include <LoggerImpl.h>
Public Member Functions | |
virtual void | beginInfoEntry (const char *file, unsigned line, const char *func) |
Start a new entry into the info channel. | |
virtual void | beginWarningEntry (const char *file, unsigned line, const char *func) |
Start a new entry into the warning channel. | |
FileLogger (const Parameters ¶ms=Parameters()) | |
virtual void | finishInfoEntry (const char *file, unsigned line, const char *func) |
Finish the entry into the info channel. | |
virtual void | finishWarningEntry (const char *file, unsigned line, const char *func) |
Finish the entry into the warning channel. | |
virtual bool | hasInfoChannel () const |
Return whether this logger provides the info channel. | |
virtual bool | hasWarningChannel () const |
Return whether this logger provides the warning channel. | |
virtual std::ostream * | infoStream () |
Return the info stream, 0 if hasInfoChannel() returns false. | |
virtual std::ostream * | warningStream () |
Return the warning stream, 0 if hasWarningChannel() returns false. | |
Static Public Member Functions | |
static const ParametersDoc | availableParameters () |
static const std::string | description () |
Public Attributes | |
const bool | displayLocation |
const std::string | infoFileName |
const std::string | warningFileName |
Protected Attributes | |
std::ofstream | _infoFileStream |
std::ostream | _infoStream |
std::ofstream | _warningFileStream |
std::ostream | _warningStream |
Definition at line 55 of file LoggerImpl.h.
PointMatcherSupport::FileLogger::FileLogger | ( | const Parameters & | params = Parameters() | ) |
Definition at line 45 of file LoggerImpl.cpp.
static const ParametersDoc PointMatcherSupport::FileLogger::availableParameters | ( | ) | [inline, static] |
Definition at line 61 of file LoggerImpl.h.
void PointMatcherSupport::FileLogger::beginInfoEntry | ( | const char * | file, |
unsigned | line, | ||
const char * | func | ||
) | [virtual] |
Start a new entry into the info channel.
Reimplemented from PointMatcherSupport::Logger.
Definition at line 87 of file LoggerImpl.cpp.
void PointMatcherSupport::FileLogger::beginWarningEntry | ( | const char * | file, |
unsigned | line, | ||
const char * | func | ||
) | [virtual] |
Start a new entry into the warning channel.
Reimplemented from PointMatcherSupport::Logger.
Definition at line 109 of file LoggerImpl.cpp.
static const std::string PointMatcherSupport::FileLogger::description | ( | ) | [inline, static] |
Definition at line 57 of file LoggerImpl.h.
void PointMatcherSupport::FileLogger::finishInfoEntry | ( | const char * | file, |
unsigned | line, | ||
const char * | func | ||
) | [virtual] |
Finish the entry into the info channel.
Reimplemented from PointMatcherSupport::Logger.
Definition at line 96 of file LoggerImpl.cpp.
void PointMatcherSupport::FileLogger::finishWarningEntry | ( | const char * | file, |
unsigned | line, | ||
const char * | func | ||
) | [virtual] |
Finish the entry into the warning channel.
Reimplemented from PointMatcherSupport::Logger.
Definition at line 118 of file LoggerImpl.cpp.
bool PointMatcherSupport::FileLogger::hasInfoChannel | ( | ) | const [virtual] |
Return whether this logger provides the info channel.
Reimplemented from PointMatcherSupport::Logger.
Definition at line 82 of file LoggerImpl.cpp.
bool PointMatcherSupport::FileLogger::hasWarningChannel | ( | ) | const [virtual] |
Return whether this logger provides the warning channel.
Reimplemented from PointMatcherSupport::Logger.
Definition at line 104 of file LoggerImpl.cpp.
std::ostream * PointMatcherSupport::FileLogger::infoStream | ( | ) | [virtual] |
Return the info stream, 0 if hasInfoChannel() returns false.
Reimplemented from PointMatcherSupport::Logger.
Definition at line 91 of file LoggerImpl.cpp.
std::ostream * PointMatcherSupport::FileLogger::warningStream | ( | ) | [virtual] |
Return the warning stream, 0 if hasWarningChannel() returns false.
Reimplemented from PointMatcherSupport::Logger.
Definition at line 113 of file LoggerImpl.cpp.
std::ofstream PointMatcherSupport::FileLogger::_infoFileStream [protected] |
Definition at line 86 of file LoggerImpl.h.
std::ostream PointMatcherSupport::FileLogger::_infoStream [protected] |
Definition at line 88 of file LoggerImpl.h.
std::ofstream PointMatcherSupport::FileLogger::_warningFileStream [protected] |
Definition at line 87 of file LoggerImpl.h.
std::ostream PointMatcherSupport::FileLogger::_warningStream [protected] |
Definition at line 89 of file LoggerImpl.h.
Definition at line 72 of file LoggerImpl.h.
const std::string PointMatcherSupport::FileLogger::infoFileName |
Definition at line 68 of file LoggerImpl.h.
const std::string PointMatcherSupport::FileLogger::warningFileName |
Definition at line 71 of file LoggerImpl.h.