LogAcceptor Class Reference

Basic class for classes that want process log messages. More...

#include <log.h>

Inherited by Console.

Inheritance diagram for LogAcceptor:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 LogAcceptor ()
virtual ~LogAcceptor ()
template<class T>
LogAcceptoroperator<< (const T &t)
 Forwarded input from Log.
virtual LogAcceptoroperator<< (std::ostream &(*op)(std::ostream &))
 Input for manipulators.
virtual void logLine (const std::string &line)=0
 Processing one line from log.

Private Attributes

std::stringstream mLine

Detailed Description

Basic class for classes that want process log messages.

Definition at line 25 of file log.h.


Constructor & Destructor Documentation

LogAcceptor::LogAcceptor  )  [inline]
 

Definition at line 28 of file log.h.

virtual LogAcceptor::~LogAcceptor  )  [inline, virtual]
 

Definition at line 29 of file log.h.


Member Function Documentation

virtual void LogAcceptor::logLine const std::string &  line  )  [pure virtual]
 

Processing one line from log.

DONT USE ANY LOGING IN THIS FUNCTION!

Parameters:
line one line

Implemented in Console.

Referenced by operator<<().

LogAcceptor & LogAcceptor::operator<< std::ostream &(*)(std::ostream &)  op  )  [virtual]
 

Input for manipulators.

Current status is that any call to this method will send current stream to logLine and empty the stream. DONT USE ANY LOGING IN THIS FUNCTION!

Parameters:
op manipulator

Definition at line 29 of file log.cpp.

References logLine(), and mLine.

Here is the call graph for this function:

template<class T>
LogAcceptor& LogAcceptor::operator<< const T &  t  )  [inline]
 

Forwarded input from Log.

DONT USE ANY LOGING IN THIS FUNCTION!

Parameters:
t what was written ti log

Definition at line 37 of file log.h.

References mLine.


Member Data Documentation

std::stringstream LogAcceptor::mLine [private]
 

Definition at line 65 of file log.h.

Referenced by operator<<().


The documentation for this class was generated from the following files:
Generated on Wed Apr 12 14:19:39 2006 for bjs by  doxygen 1.4.5