Abstract interface for converting log information into a human-readable format. More...
#include <mitsuba/core/formatter.h>
Public Member Functions | |
virtual std::string | format (ELogLevel logLevel, const Class *theClass, const Thread *thread, const std::string &text, const char *file, int line)=0 |
Turn a log message into a human-readable format. More... | |
virtual const Class * | getClass () const |
Retrieve this object's class. More... | |
Public Member Functions inherited from Object | |
Object () | |
Construct a new object. More... | |
int | getRefCount () const |
Return the current reference count. More... | |
void | incRef () const |
Increase the reference count of the object by one. More... | |
void | decRef (bool autoDeallocate=true) const |
Decrease the reference count of the object and possibly deallocate it. More... | |
virtual std::string | toString () const |
Return a human-readable string representation of the object's contents. More... | |
Static Public Attributes | |
static Class * | m_theClass |
Static Public Attributes inherited from Object | |
static Class * | m_theClass |
Pointer to the object's class descriptor. More... | |
Protected Member Functions | |
virtual | ~Formatter () |
Virtual destructor. More... | |
Protected Member Functions inherited from Object | |
virtual | ~Object () |
Virtual private deconstructor. (Will only be called by ref) More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
static void | staticInitialization () |
Initializes the built-in reference count debugger (if enabled) More... | |
static void | staticShutdown () |
Free the memory taken by staticInitialization() More... | |
Abstract interface for converting log information into a human-readable format.
|
inlineprotectedvirtual |
Virtual destructor.
|
pure virtual |
Turn a log message into a human-readable format.
logLevel | The importance of the debug message |
theClass | Originating class or NULL |
thread | Thread, which is reponsible for creating the message |
text | Text content associated with the log message |
file | File, which is responsible for creating the message |
line | Associated line within the source file |
Implemented in mitsuba::DefaultFormatter.
|
virtual |
Retrieve this object's class.
Reimplemented from Object.
Reimplemented in mitsuba::DefaultFormatter.
|
static |