tut::reporter Class Reference

#include <tut_reporter.h>

Inheritance diagram for tut::reporter:

Inheritance graph
[legend]
Collaboration diagram for tut::reporter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 reporter ()
 reporter (std::ostream &out)
void run_started ()
void test_completed (const tut::test_result &tr)
void run_completed ()
bool all_ok () const

Public Attributes

int ok_count
int exceptions_count
int failures_count
int terminations_count
int warnings_count

Private Types

typedef std::vector< tut::test_resultnot_passed_list

Private Member Functions

void init ()

Private Attributes

std::string current_group
not_passed_list not_passed
std::ostream & os

Detailed Description

Default TUT callback handler.

Definition at line 48 of file tut_reporter.h.


Member Typedef Documentation

typedef std::vector<tut::test_result> tut::reporter::not_passed_list [private]

Definition at line 51 of file tut_reporter.h.


Constructor & Destructor Documentation

tut::reporter::reporter (  )  [inline]

Definition at line 62 of file tut_reporter.h.

References init().

Here is the call graph for this function:

tut::reporter::reporter ( std::ostream &  out  )  [inline]

Definition at line 67 of file tut_reporter.h.

References init().

Here is the call graph for this function:


Member Function Documentation

bool tut::reporter::all_ok (  )  const [inline]

Definition at line 163 of file tut_reporter.h.

References not_passed.

void tut::reporter::init (  )  [inline, private]

Definition at line 169 of file tut_reporter.h.

References exceptions_count, failures_count, not_passed, ok_count, terminations_count, and warnings_count.

Referenced by reporter(), and run_started().

void tut::reporter::run_completed (  )  [inline, virtual]

Called when all tests in run completed.

Reimplemented from tut::callback.

Definition at line 98 of file tut_reporter.h.

References tut::test_result::ex, exceptions_count, tut::test_result::fail, failures_count, not_passed, ok_count, os, tut::test_result::term, terminations_count, tut::test_result::warn, and warnings_count.

void tut::reporter::run_started (  )  [inline, virtual]

Called when new test run started.

Reimplemented from tut::callback.

Definition at line 72 of file tut_reporter.h.

References init().

Here is the call graph for this function:

void tut::reporter::test_completed ( const tut::test_result tr  )  [inline, virtual]

Called when a test finished.

Parameters:
tr Test results.

Reimplemented from tut::callback.

Definition at line 77 of file tut_reporter.h.

References current_group, tut::test_result::ex, exceptions_count, tut::test_result::fail, failures_count, tut::test_result::group, not_passed, tut::test_result::ok, ok_count, os, tut::test_result::result, terminations_count, tut::test_result::warn, and warnings_count.


Member Data Documentation

std::string tut::reporter::current_group [private]

Definition at line 50 of file tut_reporter.h.

Referenced by test_completed().

int tut::reporter::exceptions_count

Definition at line 57 of file tut_reporter.h.

Referenced by init(), run_completed(), and test_completed().

int tut::reporter::failures_count

Definition at line 58 of file tut_reporter.h.

Referenced by init(), run_completed(), and test_completed().

not_passed_list tut::reporter::not_passed [private]

Definition at line 52 of file tut_reporter.h.

Referenced by all_ok(), init(), run_completed(), and test_completed().

int tut::reporter::ok_count

Definition at line 56 of file tut_reporter.h.

Referenced by init(), run_completed(), and test_completed().

std::ostream& tut::reporter::os [private]

Definition at line 53 of file tut_reporter.h.

Referenced by run_completed(), and test_completed().

int tut::reporter::terminations_count

Definition at line 59 of file tut_reporter.h.

Referenced by init(), run_completed(), and test_completed().

int tut::reporter::warnings_count

Definition at line 60 of file tut_reporter.h.

Referenced by init(), run_completed(), and test_completed().


The documentation for this class was generated from the following file:
Generated on Fri Oct 26 13:35:18 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7