DefaultErrorHandler Class Reference

Inheritance diagram for DefaultErrorHandler:

XmlRpc::XmlRpcErrorHandler List of all members.

Public Member Functions

void error (const char *msg)
 Report an error. Custom error handlers should define this method.

Static Public Member Functions

static XmlRpcErrorHandler * getErrorHandler ()
 Returns a pointer to the currently installed error handling object.
static void setErrorHandler (XmlRpcErrorHandler *eh)
 Specifies the error handler.

Static Protected Attributes

static XmlRpcErrorHandler * _errorHandler = &defaultErrorHandler

Detailed Description

Definition at line 48 of file XmlRpcUtil.cpp.


Member Function Documentation

void DefaultErrorHandler::error ( const char *  msg  )  [inline, virtual]

Report an error. Custom error handlers should define this method.

Implements XmlRpc::XmlRpcErrorHandler.

Definition at line 51 of file XmlRpcUtil.cpp.

00051                               {
00052 #ifdef USE_WINDOWS_DEBUG
00053     OutputDebugString(msg); OutputDebugString("\n");
00054 #else
00055     std::cerr << msg << std::endl; 
00056 #endif  
00057   }

static XmlRpcErrorHandler* XmlRpc::XmlRpcErrorHandler::getErrorHandler (  )  [inline, static, inherited]

Returns a pointer to the currently installed error handling object.

Definition at line 42 of file XmlRpc.h.

References XmlRpc::XmlRpcErrorHandler::_errorHandler.

Referenced by XmlRpc::XmlRpcUtil::error().

00043     { return _errorHandler; }

static void XmlRpc::XmlRpcErrorHandler::setErrorHandler ( XmlRpcErrorHandler eh  )  [inline, static, inherited]

Specifies the error handler.

Definition at line 46 of file XmlRpc.h.

References XmlRpc::XmlRpcErrorHandler::_errorHandler.

00047     { _errorHandler = eh; }


Member Data Documentation

XmlRpcErrorHandler * XmlRpcErrorHandler::_errorHandler = &defaultErrorHandler [static, protected, inherited]

Definition at line 53 of file XmlRpc.h.

Referenced by XmlRpc::XmlRpcErrorHandler::getErrorHandler(), and XmlRpc::XmlRpcErrorHandler::setErrorHandler().


Generated on Tue Nov 29 23:18:16 2016 for BOSS_7.0.2 by  doxygen 1.4.7