opal::loggerImpl::Logger Class Reference

#include <Logger.h>

List of all members.

Public Member Functions

 Logger ()
 ~Logger ()
void OPAL_CALL setStream (const std::string &name, std::ostream *stream, const std::string &prefix="", char mark='\0')
std::ostream &OPAL_CALL stream (const std::string &name)

Private Member Functions

void init ()

Private Attributes

std::map< std::string, StreammStreams

Classes

struct  Stream


Detailed Description

This class is used to log any events, errors, or warnings that may come up. Calls to this class should replace all cout << statements in the form: Logger::stream("myStreamName") << ... where myStreamName was registered as a cout stream or file stream using the setStream function.

Definition at line 61 of file Logger.h.


Constructor & Destructor Documentation

opal::loggerImpl::Logger::Logger  ) 
 

Definition at line 8 of file Logger.cpp.

References setStream().

opal::loggerImpl::Logger::~Logger  ) 
 

Definition at line 25 of file Logger.cpp.


Member Function Documentation

void opal::loggerImpl::Logger::init  )  [private]
 

void opal::loggerImpl::Logger::setStream const std::string &  name,
std::ostream *  stream,
const std::string &  prefix = "",
char  mark = '\0'
 

Register a new stream for later use.

Definition at line 29 of file Logger.cpp.

References mStreams.

Referenced by Logger().

std::ostream & opal::loggerImpl::Logger::stream const std::string &  name  ) 
 

Returns the named stream.

Definition at line 61 of file Logger.cpp.

References mStreams.


Member Data Documentation

std::map<std::string, Stream> opal::loggerImpl::Logger::mStreams [private]
 

Definition at line 91 of file Logger.h.

Referenced by setStream(), and stream().


The documentation for this class was generated from the following files:
Generated on Tue May 16 17:49:59 2006 for OPAL by  doxygen 1.4.6-NO