dlr::test::RunnableObject Class Reference

This class serves a parent class for the various TestFuxture<foo> types, allowing virtual function dispatch to TestFuxture<foo>::run(), and (if DLR_TEST_USE_AUTOMATIC_MAIN is defined) automatic registration with the pre-written main() function. More...

#include <runnableObject.h>

Inheritance diagram for dlr::test::RunnableObject:
[legend]

List of all members.

Public Member Functions

 RunnableObject ()
 Constructor registers with the pre-written main() function so that it will be run automatically if the user chooses to link with libdlrTestAutoMain.
virtual ~RunnableObject ()
 Destructor un-registers with the pre-written main() function so that the no-longer-valid RunnableObject instance won't be invoked automatically if the user chooses to link with libdlrTestAutoMain.
virtual bool run ()=0
 Pure virtual run() method will dispatch to the run() method of the subclass.


Detailed Description

This class serves a parent class for the various TestFuxture<foo> types, allowing virtual function dispatch to TestFuxture<foo>::run(), and (if DLR_TEST_USE_AUTOMATIC_MAIN is defined) automatic registration with the pre-written main() function.

User code will most likely never need to access this class.

Definition at line 33 of file runnableObject.h.


Constructor & Destructor Documentation

dlr::test::RunnableObject::RunnableObject (  )  [inline]

Constructor registers with the pre-written main() function so that it will be run automatically if the user chooses to link with libdlrTestAutoMain.

Definition at line 40 of file runnableObject.h.

References dlr::test::registerTestFixture().

virtual dlr::test::RunnableObject::~RunnableObject (  )  [inline, virtual]

Destructor un-registers with the pre-written main() function so that the no-longer-valid RunnableObject instance won't be invoked automatically if the user chooses to link with libdlrTestAutoMain.

Definition at line 50 of file runnableObject.h.

References dlr::test::unregisterTestFixture().


Member Function Documentation

virtual bool dlr::test::RunnableObject::run (  )  [pure virtual]

Pure virtual run() method will dispatch to the run() method of the subclass.

Returns:
The return value should indicate success or failure of the test.

Implemented in dlr::test::TestFixture< FixtureType >.


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

Generated on Wed Nov 25 01:02:07 2009 for dlrTest Utility Library by  doxygen 1.5.8