CVR-Lib last update 20 Sep 2009

cvr::statusMonitorException Class Reference

Class statusMonitorException. More...

#include <cvrStatusMonitorException.h>

Inheritance diagram for cvr::statusMonitorException:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 statusMonitorException ()
 statusMonitorException (const statusMonitorException &stMonitor)
virtual ~statusMonitorException ()
virtual const std::string & name () const
virtual statusMonitorExceptionclone () const
virtual statusMonitorExceptionnewInstance () const
virtual void set (const std::string &id, const char *msg)
virtual void set (const std::string &id, const std::string &msg)


Detailed Description

Class statusMonitorException.

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::statusMonitorException::statusMonitorException (  ) 

Default constructor.

cvr::statusMonitorException::statusMonitorException ( const statusMonitorException stMonitor  ) 

Copy constructor.

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

Destructor.


Member Function Documentation

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]

Return the name of this class.

Implements cvr::statusMonitor.

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

Return a static instance of the current object type.

Implements cvr::statusMonitor.

virtual void cvr::statusMonitorException::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::statusMonitorException::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.


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