A class with only static members holding the list of available tests. More...
Static Public Member Functions | |
static void | addTest (QString name, AbstractTest *test) |
Adds a test to the list of available ones. More... | |
static QStringList | getList () |
Returns the list of the names of available tests. More... | |
static AbstractTest * | getTest (QString name) |
Returns the test with the given name. More... | |
Detailed Description
A class with only static members holding the list of available tests.
This class allows registering and retrieving the tests which are available in the current execution of the program. The list of tests available in the current execution depends on the content of the configuration file (see the main() function for details)
Definition at line 194 of file abstracttest.h.
Member Function Documentation
|
static |
Adds a test to the list of available ones.
- Parameters
-
name the name of the test test the test
Definition at line 28 of file abstracttest.cpp.
Referenced by EvoRobotComponent::configure().
|
static |
Returns the list of the names of available tests.
- Returns
- the list of the names of available tests
Definition at line 33 of file abstracttest.cpp.
Referenced by EvoRobotViewer::addAdditionalMenus(), and EvoRobotViewer::getViewers().
|
static |
Returns the test with the given name.
- Returns
- the test with the given name or NULL if no test exists with that name
Definition at line 38 of file abstracttest.cpp.
Referenced by EvoRobotViewer::addAdditionalMenus(), EvoRobotViewer::getViewers(), and EvoRobotComponent::runTest().
The documentation for this class was generated from the following files:
- experiments/evorobot/include/abstracttest.h
- experiments/evorobot/src/abstracttest.cpp