te::ws::ogc::wms::WMSXMLParserFactory Class Reference

This is the default implementation factory for 1.3.0 WMS XMLParser. More...

#include <WMSXMLParserFactory.h>

Inheritance diagram for te::ws::ogc::wms::WMSXMLParserFactory:
te::ws::ogc::wms::AbstractWMSXMLParserFactory te::common::AbstractFactory< XMLParser, std::string >

Public Types

typedef FactoryDictionary< AbstractFactory< XMLParser, 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...
 
 ~WMSXMLParserFactory ()
 Virtual 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 XMLParsermake (const std::string &factoryKey)
 It creates an object with the appropriated factory. More...
 

Protected Member Functions

te::ws::ogc::wms::XMLParserbuild ()
 Concrete factories (derived from this one) must implement this method in order to create objects. More...
 
 WMSXMLParserFactory ()
 

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 WMSXMLParserFactory sm_factory
 

Detailed Description

This is the default implementation factory for 1.3.0 WMS XMLParser.

Definition at line 49 of file WMSXMLParserFactory.h.

Member Typedef Documentation

◆ dictionary_type

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

Definition at line 73 of file AbstractFactory.h.

◆ factory_type

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

Definition at line 77 of file AbstractFactory.h.

Constructor & Destructor Documentation

◆ ~WMSXMLParserFactory()

te::ws::ogc::wms::WMSXMLParserFactory::~WMSXMLParserFactory ( )

Virtual destructor.

Note
It will automatically unregister the factory from the dictionary.

◆ WMSXMLParserFactory()

te::ws::ogc::wms::WMSXMLParserFactory::WMSXMLParserFactory ( )
protected

Member Function Documentation

◆ build()

te::ws::ogc::wms::XMLParser* te::ws::ogc::wms::WMSXMLParserFactory::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< XMLParser, std::string >.

◆ find()

const AbstractFactory< XMLParser , std::string , std::less<std::string > >::factory_type * te::common::AbstractFactory< XMLParser , std::string , std::less<std::string > >::find ( const std::string &  factoryKey)
inlinestaticinherited

Definition at line 164 of file AbstractFactory.h.

◆ getDictionary()

AbstractFactory< XMLParser , std::string , std::less<std::string > >::dictionary_type & te::common::AbstractFactory< XMLParser , std::string , std::less<std::string > >::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 std::string & te::common::AbstractFactory< XMLParser , std::string , std::less<std::string > >::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()

XMLParser * te::common::AbstractFactory< XMLParser , std::string , std::less<std::string > >::make ( const std::string &  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

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

◆ sm_factory

WMSXMLParserFactory te::ws::ogc::wms::WMSXMLParserFactory::sm_factory
staticprivate

Definition at line 68 of file WMSXMLParserFactory.h.


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