The workbench factory provides methods for the dynamic creation of special workbenches for each module. More...
#include <WorkbenchFactory.h>
Public Member Functions | |
Workbench * | createWorkbench (const char *sName) const |
Creates the workbench with name. | |
std::list< std::string > | workbenches () const |
Returns a list of all registered workbench classes. | |
Static Public Member Functions | |
static void | destruct () |
Destructs the sole instance. | |
static WorkbenchFactoryInst & | instance () |
The one and only instance. |
The workbench factory provides methods for the dynamic creation of special workbenches for each module.
To create these workbenches once they must be registered through a subclass of WorkbenchProducer.
Definition at line 41 of file WorkbenchFactory.h.
Workbench * WorkbenchFactoryInst::createWorkbench | ( | const char * | sName | ) | const |
Creates the workbench with name.
If no such workbench is registered 0 is returned.
Definition at line 47 of file WorkbenchFactory.cpp.
References Base::Factory::Produce(), Gui::Workbench::setName(), and RobotExample::w.
void WorkbenchFactoryInst::destruct | ( | void | ) | [static] |
Destructs the sole instance.
Definition at line 40 of file WorkbenchFactory.cpp.
WorkbenchFactoryInst & WorkbenchFactoryInst::instance | ( | void | ) | [static] |
The one and only instance.
Definition at line 33 of file WorkbenchFactory.cpp.
Referenced by Gui::WorkbenchFactory().
std::list< std::string > WorkbenchFactoryInst::workbenches | ( | void | ) | const |
Returns a list of all registered workbench classes.
Definition at line 61 of file WorkbenchFactory.cpp.
References Base::Factory::_mpcProducers.