te::qt::widgets::DefaultFeatureInfoMakerFactory Class Reference

#include <DefaultFeatureInfoMakerFactory.h>

Inheritance diagram for te::qt::widgets::DefaultFeatureInfoMakerFactory:
te::qt::widgets::FeatureInfoMakerFactory te::common::AbstractFactory< AbstractFeatureInfoMaker, std::string >

Public Types

typedef FactoryDictionary< AbstractFactory< AbstractFeatureInfoMaker, 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...
 
virtual ~DefaultFeatureInfoMakerFactory ()
 Destructor. More...
 

Static Public Member Functions

static const factory_typefind (const std::string &factoryKey)
 
static dictionary_typegetDictionary ()
 It returns a reference to the internal dictionary of concrete factories. More...
 
static AbstractFeatureInfoMakermake ()
 It creates and returns the default AbstractFeatureInfoMaker. More...
 
static AbstractFeatureInfoMakermake (const std::string &makerKey)
 It creates and returns the specific AbstractFeatureInfoMaker. More...
 

Protected Member Functions

AbstractFeatureInfoMakerbuild ()
 Builds a new DefaultFeatureInfoMaker object. More...
 
 DefaultFeatureInfoMakerFactory ()
 Default constructor. 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...
 

Static Private Attributes

static DefaultFeatureInfoMakerFactory sm_factory
 Static attribute used to register this factory. More...
 

Detailed Description

Definition at line 42 of file DefaultFeatureInfoMakerFactory.h.

Member Typedef Documentation

typedef FactoryDictionary<AbstractFactory<AbstractFeatureInfoMaker , std::string , std::less<std::string > >, std::string , std::less<std::string > > te::common::AbstractFactory< AbstractFeatureInfoMaker , std::string , std::less<std::string > >::dictionary_type
inherited

Definition at line 73 of file AbstractFactory.h.

typedef AbstractFactory te::common::AbstractFactory< AbstractFeatureInfoMaker , std::string , std::less<std::string > >::factory_type
inherited

Definition at line 77 of file AbstractFactory.h.

Constructor & Destructor Documentation

virtual te::qt::widgets::DefaultFeatureInfoMakerFactory::~DefaultFeatureInfoMakerFactory ( )
virtual

Destructor.

te::qt::widgets::DefaultFeatureInfoMakerFactory::DefaultFeatureInfoMakerFactory ( )
protected

Default constructor.

Member Function Documentation

AbstractFeatureInfoMaker* te::qt::widgets::DefaultFeatureInfoMakerFactory::build ( )
protectedvirtual
static const factory_type* te::common::AbstractFactory< AbstractFeatureInfoMaker , std::string , std::less<std::string > >::find ( const std::string &  factoryKey)
staticinherited
static dictionary_type& te::common::AbstractFactory< AbstractFeatureInfoMaker , std::string , std::less<std::string > >::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.
const std::string & te::common::AbstractFactory< AbstractFeatureInfoMaker , std::string , std::less<std::string > >::getKey ( ) const
inherited

It returns the factory key associated to the concreate factory.

Returns
The factory key associated to the concreate factory.
static AbstractFeatureInfoMaker* te::qt::widgets::FeatureInfoMakerFactory::make ( )
staticinherited

It creates and returns the default AbstractFeatureInfoMaker.

Returns
A default AbstractFeatureInfoMaker
Note
The caller will take the ownership of the returned pointer
static AbstractFeatureInfoMaker* te::qt::widgets::FeatureInfoMakerFactory::make ( const std::string &  makerKey)
staticinherited

It creates and returns the specific AbstractFeatureInfoMaker.

Returns
A specific AbstractFeatureInfoMaker
Parameters
makerKeyThe name of specific feature info maker
Note
The caller will take the ownership of the returned pointer

Member Data Documentation

std::string te::common::AbstractFactory< AbstractFeatureInfoMaker , std::string , std::less<std::string > >::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.

DefaultFeatureInfoMakerFactory te::qt::widgets::DefaultFeatureInfoMakerFactory::sm_factory
staticprivate

Static attribute used to register this factory.

Definition at line 61 of file DefaultFeatureInfoMakerFactory.h.


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