te::process::SimpleDataParameterValueFactory Class Reference

#include <SimpleDataParameterValue.h>

Inheritance diagram for te::process::SimpleDataParameterValueFactory:
te::process::ParameterValueFactory te::common::AbstractFactory< te::process::ParameterValue, int >

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...
 
 SimpleDataParameterValueFactory (int dataType)
 < Constructor More...
 
virtual ~SimpleDataParameterValueFactory ()
 

Static Public Member Functions

static const factory_typefind (const int &factoryKey)
 
static dictionary_typegetDictionary ()
 It returns a reference to the internal dictionary of concrete factories. More...
 
static te::process::ParameterValuemake (const int &factoryKey)
 It creates an object with the appropriated factory. More...
 

Protected Member Functions

te::process::ParameterValuebuild () override
 Concrete factories (derived from this one) must implement this method in order to create objects. More...
 

Protected Attributes

int m_factoryKey
 The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More...
 

Detailed Description

Definition at line 89 of file SimpleDataParameterValue.h.

Member Typedef Documentation

◆ dictionary_type

typedef FactoryDictionary<AbstractFactory<te::process::ParameterValue , int , std::less<int > >, int , std::less<int > > te::common::AbstractFactory< te::process::ParameterValue , int , std::less<int > >::dictionary_type
inherited

Definition at line 73 of file AbstractFactory.h.

◆ factory_type

Definition at line 77 of file AbstractFactory.h.

Constructor & Destructor Documentation

◆ SimpleDataParameterValueFactory()

te::process::SimpleDataParameterValueFactory::SimpleDataParameterValueFactory ( int  dataType)

< Constructor

Destructor

◆ ~SimpleDataParameterValueFactory()

virtual te::process::SimpleDataParameterValueFactory::~SimpleDataParameterValueFactory ( )
virtual

Member Function Documentation

◆ build()

te::process::ParameterValue* te::process::SimpleDataParameterValueFactory::build ( )
overrideprotectedvirtual

Concrete factories (derived from this one) must implement this method in order to create objects.

Returns
It returns an object created by the concrete factory.

Implements te::common::AbstractFactory< te::process::ParameterValue, int >.

◆ find()

const AbstractFactory< te::process::ParameterValue , int , std::less<int > >::factory_type * te::common::AbstractFactory< te::process::ParameterValue , int , std::less<int > >::find ( const int &  factoryKey)
inlinestaticinherited

Definition at line 164 of file AbstractFactory.h.

◆ getDictionary()

AbstractFactory< te::process::ParameterValue , int , std::less<int > >::dictionary_type & te::common::AbstractFactory< te::process::ParameterValue , int , std::less<int > >::getDictionary ( )
inlinestaticinherited

It returns a reference to the internal dictionary of concrete factories.

The dictionary is a singleton.

Returns
A reference to the internal dictionary.

Definition at line 157 of file AbstractFactory.h.

◆ getKey()

const int & te::common::AbstractFactory< te::process::ParameterValue , int , std::less<int > >::getKey ( ) const
inlineinherited

It returns the factory key associated to the concreate factory.

Returns
The factory key associated to the concreate factory.

Definition at line 140 of file AbstractFactory.h.

◆ make()

te::process::ParameterValue * te::common::AbstractFactory< te::process::ParameterValue , int , std::less<int > >::make ( const int &  factoryKey)
inlinestaticinherited

It creates an object with the appropriated factory.

Parameters
factoryKeyA key that identifies the factory used to build the object.
Returns
It returns a new object created by the given factory.
Exceptions
ExceptionIf the concrete factory is not specified or the object can not be built for any reason this methiod may throws an exception.
Note
The caller of this method will take the ownership of the returned object.

Definition at line 146 of file AbstractFactory.h.

Member Data Documentation

◆ m_factoryKey

int te::common::AbstractFactory< te::process::ParameterValue , int , std::less<int > >::m_factoryKey
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.


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