last update 20 Sep 2009 |
#include <cvrStatusMonitorCerr.h>
Public Member Functions | |
statusMonitorCerr (std::ostream &theStream=std::cerr) | |
statusMonitorCerr (const statusMonitorCerr &stMonitor) | |
virtual | ~statusMonitorCerr () |
virtual const std::string & | name () const |
virtual statusMonitorCerr * | clone () const |
virtual statusMonitorCerr * | newInstance () 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_ |
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.
cvr::statusMonitorCerr::statusMonitorCerr | ( | std::ostream & | theStream = std::cerr |
) |
Default constructor.
cvr::statusMonitorCerr::statusMonitorCerr | ( | const statusMonitorCerr & | stMonitor | ) |
Copy constructor.
virtual cvr::statusMonitorCerr::~statusMonitorCerr | ( | ) | [virtual] |
Destructor.
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] |
virtual statusMonitorCerr* cvr::statusMonitorCerr::newInstance | ( | ) | const [virtual] |
virtual void cvr::statusMonitorCerr::set | ( | const std::string & | id, | |
const std::string & | msg | |||
) | [virtual] |
Set a status string.
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.
id | of the reporting class. Usually you give here the output of name(). | |
msg | the const string to be reported. |
Implements cvr::statusMonitor.
std::ostream* cvr::statusMonitorCerr::theStream_ [protected] |
Output stream where the errors should be written as they come.