Wrapper function used to create taks. Used to avoid C++ to create multiple instances of the factory singleton on Windows. More...
#include <TaskPropertyHandler.h>
Public Types | |
typedef FactoryDictionary< AbstractFactory< te::process::qt::TaskPropertyHandler, std::string, std::less< std::string > >, std::string, std::less< std::string > > | dictionary_type |
typedef AbstractFactory | factory_type |
Public Member Functions | |
const std::string & | getKey () const |
It returns the factory key associated to the concreate factory. More... | |
TaskPropertyHandlerFactory (const std::string &taskType) | |
Constructor. More... | |
virtual | ~TaskPropertyHandlerFactory () |
Static Public Member Functions | |
static const factory_type * | find (const std::string &factoryKey) |
static dictionary_type & | getDictionary () |
It returns a reference to the internal dictionary of concrete factories. More... | |
static te::process::qt::TaskPropertyHandler * | make (const std::string &factoryKey) |
It creates an object with the appropriated factory. More... | |
Protected Member Functions | |
virtual te::process::qt::TaskPropertyHandler * | build ()=0 |
Concrete factories (derived from this one) must implement this method in order to create objects. More... | |
Protected Attributes | |
std::string | m_factoryKey |
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More... | |
Wrapper function used to create taks. Used to avoid C++ to create multiple instances of the factory singleton on Windows.
Abstract factory used to create Tasks property handlers.
Definition at line 148 of file TaskPropertyHandler.h.
|
inherited |
Definition at line 73 of file AbstractFactory.h.
|
inherited |
Definition at line 77 of file AbstractFactory.h.
te::process::qt::TaskPropertyHandlerFactory::TaskPropertyHandlerFactory | ( | const std::string & | taskType | ) |
Constructor.
factoryKey | The key that identifies the factory. Destructor |
|
virtual |
|
protectedpure virtualinherited |
Concrete factories (derived from this one) must implement this method in order to create objects.
Implemented in te::process::qt::DefaultTaskPropertyHandlerFactory, te::process::qt::DataStoreTaskPropertyHandlerFactory, and te::process::qt::DataAccessTaskPropertyHandlerFactory.
|
inlinestaticinherited |
Definition at line 108 of file AbstractFactory.h.
|
inlinestaticinherited |
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
Definition at line 106 of file AbstractFactory.h.
|
inlineinherited |
It returns the factory key associated to the concreate factory.
Definition at line 84 of file AbstractFactory.h.
|
inlinestaticinherited |
It creates an object with the appropriated factory.
factoryKey | A key that identifies the factory used to build the object. |
Exception | If the concrete factory is not specified or the object can not be built for any reason this methiod may throws an exception. |
Definition at line 97 of file AbstractFactory.h.
|
protectedinherited |
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
Definition at line 136 of file AbstractFactory.h.