
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 ErrorHandler * | Get () |
| Get singleton instance. | |
| static void | Set (ErrorHandler *pHandler) |
| Set singleton instance. | |
Protected Member Functions | |
| ErrorHandler () | |
| Protected constructor. | |
Static Protected Attributes | |
| static ErrorHandler * | cpHandler = NULL |
| The singleton. | |
Can/should be implemented in sub class. Default implementation just printf everything.
| ErrorHandler::ErrorHandler | ( | ) | [protected] |
Protected constructor.
Inherit and implement insatnce from sub class.
| 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] |
| void laserlib::ErrorHandler::Warning | ( | std::string const & | msg | ) | [virtual] |
| void laserlib::ErrorHandler::Information | ( | std::string const & | msg | ) | [virtual] |
| void laserlib::ErrorHandler::Debug | ( | std::string const & | msg | ) | [virtual] |
Report a debug message.
Should do nothing in release build
Reimplemented in sgis::image::WalzErrorHandler.
ErrorHandler * ErrorHandler::cpHandler = NULL [static, protected] |
The singleton.
1.5.6