AvailableTestList Class Reference

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.
 
static QStringList getList ()
 Returns the list of the names of available tests.
 
static AbstractTestgetTest (QString name)
 Returns the test with the given name.
 

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

void addTest ( QString  name,
AbstractTest test 
)
static

Adds a test to the list of available ones.

Parameters
namethe name of the test
testthe test

Definition at line 28 of file abstracttest.cpp.

Referenced by EvoRobotComponent::configure().

QStringList getList ( )
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().

AbstractTest * getTest ( QString  name)
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: