laserlib::ErrorHandler Struct Reference

Error handler. More...

Inheritance diagram for laserlib::ErrorHandler:

sgis::image::WalzErrorHandler

List of all members.

Public Member Functions

virtual void Error (std::string const &msg)
 Report an error.
virtual void Warning (std::string const &msg)
 Report a waring.
virtual void Information (std::string const &msg)
 Report an information message.
virtual void Debug (std::string const &msg)
 Report a debug message.

Static Public Member Functions

static ErrorHandlerGet ()
 Get singleton instance.
static void Set (ErrorHandler *pHandler)
 Set singleton instance.

Protected Member Functions

 ErrorHandler ()
 Protected constructor.

Static Protected Attributes

static ErrorHandlercpHandler = NULL
 The singleton.


Detailed Description

Error handler.

Can/should be implemented in sub class. Default implementation just printf everything.


Constructor & Destructor Documentation

ErrorHandler::ErrorHandler (  )  [protected]

Protected constructor.

Inherit and implement insatnce from sub class.


Member Function Documentation

ErrorHandler * ErrorHandler::Get (  )  [static]

Get singleton instance.

void ErrorHandler::Set ( ErrorHandler pHandler  )  [static]

Set singleton instance.

The instance is not deleted automatically, so call delete ErrorHandler::Get(); at the end of usage.

void laserlib::ErrorHandler::Error ( std::string const &  msg  )  [virtual]

Report an error.

Reimplemented in sgis::image::WalzErrorHandler.

void laserlib::ErrorHandler::Warning ( std::string const &  msg  )  [virtual]

Report a waring.

Reimplemented in sgis::image::WalzErrorHandler.

void laserlib::ErrorHandler::Information ( std::string const &  msg  )  [virtual]

Report an information message.

Reimplemented in sgis::image::WalzErrorHandler.

void laserlib::ErrorHandler::Debug ( std::string const &  msg  )  [virtual]

Report a debug message.

Should do nothing in release build

Reimplemented in sgis::image::WalzErrorHandler.


Member Data Documentation

ErrorHandler * ErrorHandler::cpHandler = NULL [static, protected]

The singleton.


Generated on Fri Feb 20 22:49:52 2009 for WALZ WAvelet Lidar Zipper by  doxygen 1.5.6