|
last update 20 Sep 2009 |
|
#include <cvrStatusMonitorException.h>


Public Member Functions | |
| statusMonitorException () | |
| statusMonitorException (const statusMonitorException &stMonitor) | |
| virtual | ~statusMonitorException () |
| virtual const std::string & | name () const |
| virtual statusMonitorException * | clone () const |
| virtual statusMonitorException * | newInstance () const |
| virtual void | set (const std::string &id, const char *msg) |
| virtual void | set (const std::string &id, const std::string &msg) |
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::statusMonitorException::statusMonitorException | ( | ) |
Default constructor.
| cvr::statusMonitorException::statusMonitorException | ( | const statusMonitorException & | stMonitor | ) |
Copy constructor.
| virtual cvr::statusMonitorException::~statusMonitorException | ( | ) | [virtual] |
Destructor.
| virtual statusMonitorException* cvr::statusMonitorException::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::statusMonitorException::name | ( | ) | const [virtual] |
| virtual statusMonitorException* cvr::statusMonitorException::newInstance | ( | ) | const [virtual] |
| virtual void cvr::statusMonitorException::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::statusMonitorException::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.