CPUnit 0.95 (beta)
The REAL C++ port of JUnit.
cpunit::ExecutionReport Class Reference

#include <cpunit_ExecutionReport.hpp>

List of all members.

Public Types

enum  ExecutionResult { OK, FAILURE, ERROR }

Public Member Functions

 ExecutionReport ()
 ExecutionReport (const ExecutionResult _t, const std::string _msg, const RegInfo &_test, const double t=.0)
 ExecutionReport (const ExecutionReport &o)
virtual ~ExecutionReport ()
ExecutionReportoperator= (const ExecutionReport &o)
ExecutionResult get_execution_result () const
const std::string & get_message () const
const RegInfoget_test () const
void set_time_spent (const double t)
double get_time_spent () const

Static Public Member Functions

static std::string translate (const ExecutionResult r)

Private Member Functions

void check_state () const

Private Attributes

ExecutionResult t
std::string error_message
const RegInfotest
double time_spent

Detailed Description

Definition at line 42 of file cpunit_ExecutionReport.hpp.


Member Enumeration Documentation

Enumerator:
OK 
FAILURE 
ERROR 

Definition at line 45 of file cpunit_ExecutionReport.hpp.


Constructor & Destructor Documentation

cpunit::ExecutionReport::ExecutionReport ( )

Definition at line 34 of file cpunit_ExecutionReport.cpp.

cpunit::ExecutionReport::ExecutionReport ( const ExecutionResult  _t,
const std::string  _msg,
const RegInfo _test,
const double  t = .0 
)

Definition at line 41 of file cpunit_ExecutionReport.cpp.

cpunit::ExecutionReport::ExecutionReport ( const ExecutionReport o)

Definition at line 48 of file cpunit_ExecutionReport.cpp.

cpunit::ExecutionReport::~ExecutionReport ( ) [virtual]

Definition at line 55 of file cpunit_ExecutionReport.cpp.


Member Function Documentation

void cpunit::ExecutionReport::check_state ( ) const [private]

Definition at line 70 of file cpunit_ExecutionReport.cpp.

cpunit::ExecutionReport::ExecutionResult cpunit::ExecutionReport::get_execution_result ( ) const

Definition at line 77 of file cpunit_ExecutionReport.cpp.

const std::string & cpunit::ExecutionReport::get_message ( ) const

Definition at line 83 of file cpunit_ExecutionReport.cpp.

const cpunit::RegInfo & cpunit::ExecutionReport::get_test ( ) const

Definition at line 89 of file cpunit_ExecutionReport.cpp.

double cpunit::ExecutionReport::get_time_spent ( ) const

Definition at line 100 of file cpunit_ExecutionReport.cpp.

cpunit::ExecutionReport & cpunit::ExecutionReport::operator= ( const ExecutionReport o)

Definition at line 59 of file cpunit_ExecutionReport.cpp.

void cpunit::ExecutionReport::set_time_spent ( const double  t)

Definition at line 95 of file cpunit_ExecutionReport.cpp.

std::string cpunit::ExecutionReport::translate ( const ExecutionResult  r) [static]

Definition at line 107 of file cpunit_ExecutionReport.cpp.


Member Data Documentation

Definition at line 53 of file cpunit_ExecutionReport.hpp.

Definition at line 54 of file cpunit_ExecutionReport.hpp.

Definition at line 55 of file cpunit_ExecutionReport.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines