daeErrorHandler Class Reference

#include <daeErrorHandler.h>

Inheritance diagram for daeErrorHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 daeErrorHandler ()
virtual void handleError (daeString msg)=0
virtual void handleWarning (daeString msg)=0
virtual ~daeErrorHandler ()

Static Public Member Functions

static daeErrorHandlerget ()
static void setErrorHandler (daeErrorHandler *eh)

Static Private Attributes

static std::auto_ptr
< daeErrorHandler
_defaultInstance
static daeErrorHandler_instance

Detailed Description

The daeErrorHandler class is a plugin that allows the use to overwrite how error and warning messages get handled in the client application. An example of this would be a class that reports the message to a gui front end instead of just printing on stdout.

Definition at line 20 of file daeErrorHandler.h.


Constructor & Destructor Documentation

daeErrorHandler::daeErrorHandler (  ) 

Constructor.

virtual daeErrorHandler::~daeErrorHandler (  )  [virtual]

Destructor.


Member Function Documentation

static daeErrorHandler* daeErrorHandler::get (  )  [static]

Returns the current daeErrorHandlerPlugin. A program has one globally-accessible daeErrorHandler active at a time.

Returns:
The current daeErrorHandler.
virtual void daeErrorHandler::handleError ( daeString  msg  )  [pure virtual]

This function is called when there is an error and a string needs to be sent to the user. You must overwrite this function in your plugin.

Parameters:
msg Error message.

Implemented in stdErrPlugin, and quietErrorHandler.

virtual void daeErrorHandler::handleWarning ( daeString  msg  )  [pure virtual]

This function is called when there is a warning and a string needs to be sent to the user. You must overwrite this function in your plugin.

Parameters:
msg Warning message.

Implemented in stdErrPlugin, and quietErrorHandler.

static void daeErrorHandler::setErrorHandler ( daeErrorHandler eh  )  [static]

Sets the daeErrorHandler to the one specified.

Parameters:
eh The new daeErrorHandler to use. Passing in NULL results in the default plugin being used.

Member Data Documentation

std::auto_ptr<daeErrorHandler> daeErrorHandler::_defaultInstance [static, private]

Definition at line 58 of file daeErrorHandler.h.

Definition at line 57 of file daeErrorHandler.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


colladadom
Author(s): Du Hung Hou, Khronos.org, Marcus Barnes, Greg Corson, Herbert Law, Sebastian Schwarz, Steven Thomas, John Hsu (ros package), Tim Field (ros package)
autogenerated on Fri Jan 11 09:29:13 2013