CVR-Lib last update 20 Sep 2009

cvr::statusMonitorCerr Class Reference

Class statusMonitorCerr. More...

#include <cvrStatusMonitorCerr.h>

Inheritance diagram for cvr::statusMonitorCerr:

Inheritance graph
[legend]
Collaboration diagram for cvr::statusMonitorCerr:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 statusMonitorCerr (std::ostream &theStream=std::cerr)
 statusMonitorCerr (const statusMonitorCerr &stMonitor)
virtual ~statusMonitorCerr ()
virtual const std::string & name () const
virtual statusMonitorCerrclone () const
virtual statusMonitorCerrnewInstance () const
virtual void set (const std::string &id, const char *msg)
virtual void set (const std::string &id, const std::string &msg)

Protected Attributes

std::ostream * theStream_


Detailed Description

Class statusMonitorCerr.

Status monitors are objects that control what to do when an error is reported. In this particular case, the error is reported on the std::cerr, or, if you want it so, on another std::stream you specify

You can call the global function cvr::setStatusMonitor() to set the object for the whole library.

This is an abstract class.


Constructor & Destructor Documentation

cvr::statusMonitorCerr::statusMonitorCerr ( std::ostream &  theStream = std::cerr  ) 

Default constructor.

cvr::statusMonitorCerr::statusMonitorCerr ( const statusMonitorCerr stMonitor  ) 

Copy constructor.

virtual cvr::statusMonitorCerr::~statusMonitorCerr (  )  [virtual]

Destructor.


Member Function Documentation

virtual statusMonitorCerr* cvr::statusMonitorCerr::clone (  )  const [virtual]

Return a static instance of the current object type, which is not clonable since it has a singleton pattern.

Implements cvr::statusMonitor.

virtual const std::string& cvr::statusMonitorCerr::name (  )  const [virtual]

Return the name of this class.

Implements cvr::statusMonitor.

virtual statusMonitorCerr* cvr::statusMonitorCerr::newInstance (  )  const [virtual]

Return a static instance of the current object type.

Implements cvr::statusMonitor.

virtual void cvr::statusMonitorCerr::set ( const std::string &  id,
const std::string &  msg 
) [virtual]

Set a status string.

Parameters:
id of the reporting class. Usually you give here the output of name().
msg the const string to be reported.

Implements cvr::statusMonitor.

virtual void cvr::statusMonitorCerr::set ( const std::string &  id,
const char *  msg 
) [virtual]

Set a status string.

Parameters:
id of the reporting class. Usually you give here the output of name().
msg the const string to be reported.

Implements cvr::statusMonitor.


Member Data Documentation

std::ostream* cvr::statusMonitorCerr::theStream_ [protected]

Output stream where the errors should be written as they come.


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

Generated on Sun Sep 20 22:08:56 2009 for CVR-Lib by Doxygen 1.5.8