CPUnit 0.7 (beta)
The REAL C++ port of JUnit.
unittest::TestStore Class Reference

#include <unittest_TestStore.hpp>

List of all members.

Public Member Functions

void insert_set_up (Callable *su)
void insert_tear_down (Callable *td)
void insert_test (Callable *test)
std::vector< TestUnitget_test_units (const std::string pattern)
std::vector< RegInfoget_tests (const std::string pattern)

Static Public Member Functions

static TestStoreget_instance ()
static void dispose ()

Private Member Functions

 TestStore ()
 ~TestStore ()
std::vector< std::string > decompose_path (const std::string &path) const
TestTreeNodefind_node (const std::string &path, const bool create_nonexisting)

Private Attributes

std::auto_ptr< TestTreeNoderoot

Static Private Attributes

static TestStoreINSTANCE

Detailed Description

Definition at line 47 of file unittest_TestStore.hpp.


Constructor & Destructor Documentation

unittest::TestStore::TestStore ( ) [private]

Definition at line 40 of file unittest_TestStore.cpp.

unittest::TestStore::~TestStore ( ) [private]

Definition at line 44 of file unittest_TestStore.cpp.


Member Function Documentation

std::vector< std::string > unittest::TestStore::decompose_path ( const std::string &  path) const [private]

Definition at line 103 of file unittest_TestStore.cpp.

void unittest::TestStore::dispose ( ) [static]

Definition at line 48 of file unittest_TestStore.cpp.

unittest::TestTreeNode * unittest::TestStore::find_node ( const std::string &  path,
const bool  create_nonexisting 
) [private]

Definition at line 125 of file unittest_TestStore.cpp.

unittest::TestStore & unittest::TestStore::get_instance ( ) [static]

Definition at line 56 of file unittest_TestStore.cpp.

std::vector< unittest::TestUnit > unittest::TestStore::get_test_units ( const std::string  pattern)

Definition at line 85 of file unittest_TestStore.cpp.

std::vector< unittest::RegInfo > unittest::TestStore::get_tests ( const std::string  pattern)

Definition at line 93 of file unittest_TestStore.cpp.

void unittest::TestStore::insert_set_up ( Callable su)

Definition at line 64 of file unittest_TestStore.cpp.

void unittest::TestStore::insert_tear_down ( Callable td)

Definition at line 71 of file unittest_TestStore.cpp.

void unittest::TestStore::insert_test ( Callable test)

Definition at line 78 of file unittest_TestStore.cpp.


Member Data Documentation

Definition at line 48 of file unittest_TestStore.hpp.

std::auto_ptr<TestTreeNode> unittest::TestStore::root [private]

Definition at line 52 of file unittest_TestStore.hpp.


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