Gui::WorkbenchFactoryInst Class Reference

The workbench factory provides methods for the dynamic creation of special workbenches for each module. More...

#include <WorkbenchFactory.h>

Inheritance diagram for Gui::WorkbenchFactoryInst:
Base::Factory

List of all members.

Public Member Functions

WorkbenchcreateWorkbench (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 WorkbenchFactoryInstinstance ()
 The one and only instance.

Detailed Description

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.

Note:
To create workbenches you should use the API of WorkbenchManager.
Author:
Werner Mayer

Definition at line 41 of file WorkbenchFactory.h.


Member Function Documentation

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.


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

Generated on Wed Nov 23 19:02:05 2011 for FreeCAD by  doxygen 1.6.1