Wrapper function used to create taks. Used to avoid C++ to create multiple instances of the factory singleton on Windows. More...
#include <ParameterValue.h>
Public Types | |
typedef FactoryDictionary< AbstractFactory< te::process::ParameterValue, int, std::less< int > >, int, std::less< int > > | dictionary_type |
typedef AbstractFactory | factory_type |
Public Member Functions | |
const int & | getKey () const |
It returns the factory key associated to the concreate factory. More... | |
Static Public Member Functions | |
static const factory_type * | find (const int &factoryKey) |
static dictionary_type & | getDictionary () |
It returns a reference to the internal dictionary of concrete factories. More... | |
static te::process::ParameterValue * | make (const int &factoryKey) |
It creates an object with the appropriated factory. More... | |
Protected Member Functions | |
virtual te::process::ParameterValue * | build ()=0 |
Concrete factories (derived from this one) must implement this method in order to create objects. More... | |
ParameterValueFactory (int dataType) | |
Constructor. More... | |
virtual | ~ParameterValueFactory () |
Protected Attributes | |
int | 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 ParameterValue.
Definition at line 82 of file ParameterValue.h.
|
inherited |
Definition at line 73 of file AbstractFactory.h.
|
inherited |
Definition at line 77 of file AbstractFactory.h.
|
protected |
Constructor.
factoryKey | The key that identifies the factory.Destructor |
|
protectedvirtual |
|
protectedpure virtualinherited |
Concrete factories (derived from this one) must implement this method in order to create objects.
Implemented in te::process::SimpleDataParameterValueFactory.
|
inlinestaticinherited |
Definition at line 164 of file AbstractFactory.h.
|
inlinestaticinherited |
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
Definition at line 157 of file AbstractFactory.h.
|
inlineinherited |
It returns the factory key associated to the concreate factory.
Definition at line 140 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 146 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.