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. More... | |
std::list< std::string > | workbenches () const |
Returns a list of all registered workbench classes. More... | |
Public Member Functions inherited from Base::Factory | |
void | AddProducer (const char *sClassName, AbstractProducer *pcProducer) |
Adds a new prducer instance. More... | |
std::list< std::string > | CanProduce () const |
returns a list of all registered producer More... | |
bool | CanProduce (const char *sClassName) const |
returns true if there is a producer for this class registered More... | |
Static Public Member Functions | |
static void | destruct () |
Destructs the sole instance. More... | |
static WorkbenchFactoryInst & | instance () |
The one and only instance. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Base::Factory | |
Factory () | |
construction More... | |
void * | Produce (const char *sClassName) const |
produce a class with the given name More... | |
virtual | ~Factory () |
destruction More... | |
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.
Workbench * WorkbenchFactoryInst::createWorkbench | ( | const char * | sName | ) | const |
Creates the workbench with name.
If no such workbench is registered 0 is returned.
References Base::Factory::Produce(), and Gui::Workbench::setName().
|
static |
Destructs the sole instance.
|
static |
The one and only instance.
Referenced by Gui::WorkbenchFactory().
std::list< std::string > WorkbenchFactoryInst::workbenches | ( | void | ) | const |
Returns a list of all registered workbench classes.