sptk2 logo
SPTK Home Page

sptk::CLogStreamBuf Class Reference
[Log Classes]

Internal buffer for the CLogStream class. More...

#include <CBaseLog.h>

List of all members.

Public Member Functions

 CLogStreamBuf ()
 Constructor.
 ~CLogStreamBuf ()
 Destructor.
void flush ()
 Flushes message buffer.
void priority (const CLogPriority &prt)
 Sets current message priority.

Protected Member Functions

void parent (CBaseLog *par)
 Assignes the parent log object.
virtual int_type overflow (int_type c)

Friends

class CBaseLog


Detailed Description

Internal buffer for the CLogStream class.

Constructor & Destructor Documentation

sptk::CLogStreamBuf::CLogStreamBuf (  ) 

Constructor.

Constructs a buffer for CBaseLog.

sptk::CLogStreamBuf::~CLogStreamBuf (  )  [inline]

Destructor.

Sends the remaining part of the message to the log, then releases the allocated memory

References flush().


Member Function Documentation

void sptk::CLogStreamBuf::flush (  )  [inline]

Flushes message buffer.

Sends the remaining part of the message to the log

References overflow().

Referenced by ~CLogStreamBuf().

virtual int_type sptk::CLogStreamBuf::overflow ( int_type  c  )  [protected, virtual]

Overwritten virtual method for std::streambuf

Parameters:
c int_type, a character sent to the stream on overflow

Referenced by flush().

void sptk::CLogStreamBuf::parent ( CBaseLog par  )  [inline, protected]

Assignes the parent log object.

Parameters:
par CBaseLog *, parent log object

Referenced by sptk::CBaseLog::CBaseLog().

void sptk::CLogStreamBuf::priority ( const CLogPriority prt  )  [inline]

Sets current message priority.

Parameters:
prt const CLogPriority&, current message priority

Referenced by sptk::CBaseLog::priority().


The documentation for this class was generated from the following file:

Mon Mar 5 11:55:46 2012: SPTK 3.5.7