Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::unit_test::unit_test_monitor_t Class Reference

#include <unit_test_monitor.hpp>

Inheritance diagram for boost::unit_test::unit_test_monitor_t:
Collaboration diagram for boost::unit_test::unit_test_monitor_t:

Public Types

enum  error_level {
  test_fail = 1,
  test_ok = 0,
  constructor_error = -1,
  unexpected_exception = -2,
  os_exception = -3,
  os_timeout = -4,
  fatal_error = -5,
  destructor_error = -6
}
 

Public Member Functions

error_level execute_and_translate (test_case const &)
 
int execute (unit_test::callback0< int > const &F)
 
template<typename Exception , typename ExceptionTranslator >
void register_exception_translator (ExceptionTranslator const &tr, boost::type< Exception > *=0)
 

Static Public Member Functions

static bool is_critical_error (error_level e)
 
static unit_test_monitor_tinstance ()
 

Public Attributes

unit_test::readwrite_property
< bool > 
p_catch_system_errors
 
unit_test::readwrite_property
< bool > 
p_auto_start_dbg
 
unit_test::readwrite_property
< int > 
p_timeout
 
unit_test::readwrite_property
< bool > 
p_use_alt_stack
 
unit_test::readwrite_property
< bool > 
p_detect_fp_exceptions
 

Member Enumeration Documentation

Enumerator
test_fail 
test_ok 
constructor_error 
unexpected_exception 
os_exception 
os_timeout 
fatal_error 
destructor_error 

Member Function Documentation

int boost::execution_monitor::execute ( unit_test::callback0< int > const &  F)
inherited

Referenced by main().

error_level boost::unit_test::unit_test_monitor_t::execute_and_translate ( test_case const &  )
static unit_test_monitor_t & boost::unit_test::singleton< unit_test_monitor_t >::instance ( )
inlinestaticinherited
static bool boost::unit_test::unit_test_monitor_t::is_critical_error ( error_level  e)
inlinestatic
template<typename Exception , typename ExceptionTranslator >
void boost::execution_monitor::register_exception_translator ( ExceptionTranslator const &  tr,
boost::type< Exception > *  = 0 
)
inherited

Member Data Documentation

unit_test::readwrite_property<bool> boost::execution_monitor::p_auto_start_dbg
inherited
unit_test::readwrite_property<bool> boost::execution_monitor::p_catch_system_errors
inherited
unit_test::readwrite_property<bool> boost::execution_monitor::p_detect_fp_exceptions
inherited
unit_test::readwrite_property<int> boost::execution_monitor::p_timeout
inherited
unit_test::readwrite_property<bool> boost::execution_monitor::p_use_alt_stack
inherited

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