GNUMessenger::LogBase Class Reference

Abstract base class for all logger classes, provides an interface to a wide character stream and a number stream. More...

#include <log.h>

Inheritance diagram for GNUMessenger::LogBase:

Inheritance graph
[legend]
List of all members.

Public Types

enum  Mode { Debug, Error, Normal }
 The different log "modes".

Public Member Functions

 LogBase ()
 Constructor initializes default values.
virtual LogBaseoperator<< (ostream &(*pf)(ostream &))
 An function to catch endl's and process them accordingly.
virtual LogBaseoperator<< (const wchar_t *wstr)
 Process wchar_t strings.
virtual LogBaseoperator<< (const char *str)
 Process char strings.
template<typename T> LogBaseoperator<< (const T str)
 Template function to get everything else.
const char * GetMode ()
 Returns the wide string description of the mode.
virtual void SetMode (const Mode mode)
 Sets the mode.

Protected Member Functions

virtual void Break ()
 Called when there is a recursive << in the stream.
virtual void BreakW ()
 Called when there is a << in the stream.
virtual ostream & GetStream ()=0
 Returns the normal stream for writing.
virtual wostream & GetStreamW ()=0
 Returns the wide stream for writing.

Protected Attributes

Mode m_mode

Detailed Description

Abstract base class for all logger classes, provides an interface to a wide character stream and a number stream.

Definition at line 16 of file log.h.


The documentation for this class was generated from the following files:
Generated on Tue Oct 5 14:41:54 2004 for GNU Messenger by doxygen 1.3.8