IMP logo
Public Member Functions | Related Functions
IMP::base::FailureHandler Class Reference

Detailed Description

A class to handle actions to take on check failures. The function is called when an assertion or check fails.

Implementors should see IMP_FAILURE_HANDLER().

+ Inheritance diagram for IMP::base::FailureHandler:

List of all members.

Public Member Functions

 FailureHandler (std::string name="Falure Handler %1%")
virtual void handle_failure ()=0
- Public Member Functions inherited from IMP::base::Object
std::size_t __hash__ () const
virtual std::string get_type_name () const =0
 Return a string identifying the type of the object.
virtual IMP::base::VersionInfo get_version_info () const =0
 Get information about the module and version of the object.
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
const std::string & get_name () const
void set_name (std::string name)

Related Functions

(Note that these are not member functions.)

void add_failure_handler (FailureHandler *f)
 Add a custom function to be called on an error.
void remove_failure_handler (FailureHandler *f)
 Remove a failure handler from the list.

Additional Inherited Members

- Protected Member Functions inherited from IMP::base::Object
 Object (std::string name)

Friends And Related Function Documentation

void add_failure_handler ( FailureHandler f)
related

Add a custom function to be called on an error.

void remove_failure_handler ( FailureHandler f)
related

Remove a failure handler from the list.


The documentation for this class was generated from the following file:

Generated on Tue May 22 2012 23:33:28 for IMP by doxygen 1.8.1