COLLADA 1.4 DOM: daeErrorHandler Class Reference

COLLADA

daeErrorHandler Class Reference

#include <daeErrorHandler.h>

Inheritance diagram for daeErrorHandler:

Inheritance graph
[legend]
Collaboration diagram for daeErrorHandler:

Collaboration graph
[legend]
List of all members.

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.

Public Member Functions

 daeErrorHandler ()
 Constructor.
virtual ~daeErrorHandler ()
 Destructor.
virtual void handleError (daeString msg)=0
 This function is called when there is an error and a string needs to be sent to the user.
virtual void handleWarning (daeString msg)=0
 This function is called when there is a warning and a string needs to be sent to the user.

Static Public Member Functions

static void setErrorHandler (daeErrorHandler *eh)
 Sets the daeErrorHandler to the one specified.
static daeErrorHandlerget ()
 Returns the current daeErrorHandlerPlugin.

Member Function Documentation

daeErrorHandler * daeErrorHandler::get  )  [static]
 

Returns the current daeErrorHandlerPlugin.

DaeErrorHandler implements a singleton design pattern so you can get the current daeErrorHandler statically.

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.

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.

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.


The documentation for this class was generated from the following files:
  • C:/SVN_wf/COLLADA_DOM/include/dae/daeErrorHandler.h
  • C:/SVN_wf/COLLADA_DOM/src/dae/daeErrorHandler.cpp

©2005 Sony Computer Entertainment Inc.. All Rights Reserved.
Generated on Fri Feb 10 16:47:00 2006 for COLLADA 1.4 DOM by doxygen 1.4.3