te::qt::widgets::StringPropertyWidgetFactory Class Reference

A factory to build the string property widget object. More...

#include <StringPropertyWidgetFactory.h>

Inheritance diagram for te::qt::widgets::StringPropertyWidgetFactory:
te::qt::widgets::SimplePropertyWidgetFactory te::common::AbstractFactory< te::qt::widgets::SimplePropertyWidget, int >

Public Types

typedef FactoryDictionary< AbstractFactory< te::qt::widgets::SimplePropertyWidget, 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...
 
int getType () const
 It returns the type of component widget that the factory knows how to create. More...
 
 ~StringPropertyWidgetFactory ()
 

Static Public Member Functions

static void finalize ()
 
static const factory_typefind (const int &factoryKey)
 
static dictionary_typegetDictionary ()
 It returns a reference to the internal dictionary of concrete factories. More...
 
static void initialize ()
 
static te::qt::widgets::SimplePropertyWidgetmake (const int &factoryKey)
 It creates an object with the appropriated factory. More...
 
static te::qt::widgets::SimplePropertyWidgetmake (const int &type)
 
static te::qt::widgets::SimplePropertyWidgetmake (const int &type, QWidget *parent=0)
 

Protected Member Functions

te::qt::widgets::SimplePropertyWidgetbuild ()
 Concrete factories (derived from this one) must implement this method in order to create objects. More...
 
virtual te::qt::widgets::SimplePropertyWidgetcreate (QWidget *parent=0)
 
 StringPropertyWidgetFactory ()
 

Protected Attributes

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

Static Private Attributes

static StringPropertyWidgetFactorysm_factory
 

Detailed Description

A factory to build the string property widget object.

Definition at line 50 of file StringPropertyWidgetFactory.h.

Member Typedef Documentation

◆ dictionary_type

typedef FactoryDictionary<AbstractFactory<te::qt::widgets::SimplePropertyWidget , int , std::less<int > >, int , std::less<int > > te::common::AbstractFactory< te::qt::widgets::SimplePropertyWidget , 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

◆ ~StringPropertyWidgetFactory()

te::qt::widgets::StringPropertyWidgetFactory::~StringPropertyWidgetFactory ( )

◆ StringPropertyWidgetFactory()

te::qt::widgets::StringPropertyWidgetFactory::StringPropertyWidgetFactory ( )
protected

Member Function Documentation

◆ build()

te::qt::widgets::SimplePropertyWidget* te::qt::widgets::StringPropertyWidgetFactory::build ( )
protectedvirtual

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::qt::widgets::SimplePropertyWidget, int >.

◆ create()

virtual te::qt::widgets::SimplePropertyWidget* te::qt::widgets::StringPropertyWidgetFactory::create ( QWidget *  parent = 0)
protectedvirtual

◆ finalize()

static void te::qt::widgets::StringPropertyWidgetFactory::finalize ( )
static

◆ find()

const AbstractFactory< te::qt::widgets::SimplePropertyWidget , int , std::less<int > >::factory_type * te::common::AbstractFactory< te::qt::widgets::SimplePropertyWidget , int , std::less<int > >::find ( const TFACTORYKEY &  factoryKey)
inlinestaticinherited

Definition at line 108 of file AbstractFactory.h.

◆ getDictionary()

AbstractFactory< te::qt::widgets::SimplePropertyWidget , int , std::less<int > >::dictionary_type & te::common::AbstractFactory< te::qt::widgets::SimplePropertyWidget , 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 106 of file AbstractFactory.h.

◆ getKey()

const int & te::common::AbstractFactory< te::qt::widgets::SimplePropertyWidget , int , std::less<int > >::getKey
inlineinherited

It returns the factory key associated to the concreate factory.

Returns
The factory key associated to the concreate factory.

Definition at line 84 of file AbstractFactory.h.

◆ getType()

int te::qt::widgets::StringPropertyWidgetFactory::getType ( ) const
virtual

It returns the type of component widget that the factory knows how to create.

Returns
The type of component widget that the factory knows how to create.

Implements te::qt::widgets::SimplePropertyWidgetFactory.

◆ initialize()

static void te::qt::widgets::StringPropertyWidgetFactory::initialize ( )
static

◆ make() [1/3]

te::qt::widgets::SimplePropertyWidget * te::common::AbstractFactory< te::qt::widgets::SimplePropertyWidget , int , std::less<int > >::make ( const TFACTORYKEY &  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 97 of file AbstractFactory.h.

◆ make() [2/3]

static te::qt::widgets::SimplePropertyWidget* te::qt::widgets::SimplePropertyWidgetFactory::make ( const int &  type)
staticinherited

◆ make() [3/3]

static te::qt::widgets::SimplePropertyWidget* te::qt::widgets::SimplePropertyWidgetFactory::make ( const int &  type,
QWidget *  parent = 0 
)
staticinherited

Member Data Documentation

◆ m_factoryKey

int te::common::AbstractFactory< te::qt::widgets::SimplePropertyWidget , 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.

◆ sm_factory

StringPropertyWidgetFactory* te::qt::widgets::StringPropertyWidgetFactory::sm_factory
staticprivate

Definition at line 72 of file StringPropertyWidgetFactory.h.


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