All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::ScatterFrameFactory Class Reference

A factory to build the scatter frame object. More...

#include <ScatterFrameFactory.h>

Inheritance diagram for te::qt::widgets::ScatterFrameFactory:
te::qt::widgets::ChartWidgetFactory te::common::AbstractFactory< te::qt::widgets::ChartWidget, std::string >

Public Types

typedef FactoryDictionary
< AbstractFactory
< te::qt::widgets::ChartWidget,
std::string, TKEYCOMPARE >
, std::string, TKEYCOMPARE > 
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...
 
 ~ScatterFrameFactory ()
 

Static Public Member Functions

static void finalize ()
 
static const factory_typefind (const std::string &factoryKey)
 
static dictionary_typegetDictionary ()
 It returns a reference to the internal dictionary of concrete factories. More...
 
static void initialize ()
 
static
te::qt::widgets::ChartWidget
make (const std::string &cwType)
 
static
te::qt::widgets::ChartWidget
make (const std::string &cwType, QWidget *parent=0)
 

Protected Member Functions

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

Protected Attributes

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

Static Private Attributes

static ScatterFrameFactorysm_factory
 

Detailed Description

A factory to build the scatter frame object.

Definition at line 50 of file ScatterFrameFactory.h.

Member Typedef Documentation

typedef FactoryDictionary<AbstractFactory<te::qt::widgets::ChartWidget , std::string , TKEYCOMPARE>, std::string , TKEYCOMPARE> te::common::AbstractFactory< te::qt::widgets::ChartWidget , std::string , TKEYCOMPARE >::dictionary_type
inherited

Definition at line 73 of file AbstractFactory.h.

typedef AbstractFactory te::common::AbstractFactory< te::qt::widgets::ChartWidget , std::string , TKEYCOMPARE >::factory_type
inherited

Definition at line 77 of file AbstractFactory.h.

Constructor & Destructor Documentation

te::qt::widgets::ScatterFrameFactory::~ScatterFrameFactory ( )

Definition at line 44 of file ScatterFrameFactory.cpp.

te::qt::widgets::ScatterFrameFactory::ScatterFrameFactory ( )
protected

Definition at line 54 of file ScatterFrameFactory.cpp.

Referenced by initialize().

Member Function Documentation

te::qt::widgets::ChartWidget * te::qt::widgets::ScatterFrameFactory::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::ChartWidget, std::string >.

Definition at line 49 of file ScatterFrameFactory.cpp.

te::qt::widgets::ChartWidget * te::qt::widgets::ScatterFrameFactory::create ( QWidget *  parent = 0)
protectedvirtual

Implements te::qt::widgets::ChartWidgetFactory.

Definition at line 60 of file ScatterFrameFactory.cpp.

void te::qt::widgets::ScatterFrameFactory::finalize ( )
static
static const factory_type* te::common::AbstractFactory< te::qt::widgets::ChartWidget , std::string , TKEYCOMPARE >::find ( const std::string &  factoryKey)
staticinherited
static dictionary_type& te::common::AbstractFactory< te::qt::widgets::ChartWidget , std::string , TKEYCOMPARE >::getDictionary ( )
staticinherited

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

The dictionary is a singleton.

Returns
A reference to the internal dictionary.

Referenced by te::qt::widgets::ChartProperties::ChartProperties().

const std::string & te::common::AbstractFactory< te::qt::widgets::ChartWidget , std::string , TKEYCOMPARE >::getKey ( ) const
inherited

It returns the factory key associated to the concreate factory.

Returns
The factory key associated to the concreate factory.
void te::qt::widgets::ScatterFrameFactory::initialize ( )
static
te::qt::widgets::ChartWidget * te::qt::widgets::ChartWidgetFactory::make ( const std::string &  cwType)
staticinherited
te::qt::widgets::ChartWidget * te::qt::widgets::ChartWidgetFactory::make ( const std::string &  cwType,
QWidget *  parent = 0 
)
staticinherited

Member Data Documentation

std::string te::common::AbstractFactory< te::qt::widgets::ChartWidget , std::string , TKEYCOMPARE >::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.

te::qt::widgets::ScatterFrameFactory * te::qt::widgets::ScatterFrameFactory::sm_factory
staticprivate

Definition at line 70 of file ScatterFrameFactory.h.

Referenced by initialize().


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