All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::da::FunctionCatalogManager Class Reference

A FunctionCatalogManager is a singleton that can be used to manage function catalogs of data source implementations. More...

#include <FunctionCatalogManager.h>

Inheritance diagram for te::da::FunctionCatalogManager:
te::common::Singleton< T >

Public Member Functions

FunctionCatalogfind (const std::string &dsType)
 It finds the function catalog with the given data source type. More...
 
void insert (const std::string &dsType, FunctionCatalog *fcatalog)
 It inserts the function catalog associated to the given data source type. More...
 
 ~FunctionCatalogManager ()
 Destructor. More...
 

Static Public Member Functions

static T & getInstance ()
 It returns a reference to the singleton instance. More...
 

Protected Member Functions

 FunctionCatalogManager ()
 No constructor available for clients. More...
 

Private Attributes

std::map< std::string,
FunctionCatalog * > 
m_fcatalogMap
 Function map: datasource-type -> FunctionCatalog*. More...
 

Friends

class te::common::Singleton< FunctionCatalogManager >
 

Detailed Description

A FunctionCatalogManager is a singleton that can be used to manage function catalogs of data source implementations.

Each data source implementation must register its function catalog in this singleton. This can be achieved by providing the data source identification token (a string) and its catalog.

See also
FunctionCatalog

Definition at line 55 of file FunctionCatalogManager.h.

Constructor & Destructor Documentation

te::da::FunctionCatalogManager::~FunctionCatalogManager ( )

Destructor.

Definition at line 34 of file FunctionCatalogManager.cpp.

References te::common::FreeContents(), and m_fcatalogMap.

te::da::FunctionCatalogManager::FunctionCatalogManager ( )
inlineprotected

No constructor available for clients.

Definition at line 88 of file FunctionCatalogManager.h.

Member Function Documentation

te::da::FunctionCatalog * te::da::FunctionCatalogManager::find ( const std::string &  dsType)

It finds the function catalog with the given data source type.

Parameters
dsTypeThe data source type.
Returns
The catalog fr the given data source type.
Note
Don't delete the returned pointer, it belongs to the manager!

Definition at line 47 of file FunctionCatalogManager.cpp.

References te::common::GetPValue().

template<class T >
T & te::common::Singleton< T >::getInstance ( )
inlinestaticinherited

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.

Definition at line 120 of file Singleton.h.

Referenced by BBOXReader(), BBOXWriter(), BetweenReader(), BetweenWriter(), BinaryComparsionOpReader(), BinaryComparsionOpWriter(), BinaryOperatorReader(), BinarySpatialOpReader(), BinarySpatialOpWriter(), te::map::AbstractLayerRenderer::buildChart(), te::map::QueryLayerRenderer::buildChart(), te::edit::SnapOptionsDialog::buildOptions(), te::layout::PropertiesOutside::changeMapVisitable(), te::layout::ItemUtils::createLegendChildItemFromLegend(), DistanceBufferOpWriter(), DistanceBufferReader(), te::sa::GetColorBar(), te::edit::Module::initialize(), te::color::Module::initialize(), te::qt::widgets::Module::initialize(), te::qt::af::GeneralConfigWidget::initialize(), te::qt::af::ApplicationController::initialize(), LikeReader(), LikeWriter(), te::qt::widgets::ColorCatalogWidget::loadDefaultColorCatalog(), NullReader(), NullWriter(), te::qt::plugins::edit::ApplicationListener::onApplicationTriggered(), te::qt::widgets::ColorCatalogWidget::onCatalogComboBoxActivated(), te::qt::widgets::ColorCatalogWidget::onGroupComboBoxActivated(), te::edit::SnapOptionsDialog::onOkPushButtonPressed(), te::qt::widgets::ColorCatalogWidget::onSchemaComboBoxActivated(), te::se::serialize::ReadGeometryPropertyHelper(), te::map::serialize::ReadGroupingItem(), te::se::serialize::ReadParameterValue(), te::se::serialize::ReadRule(), te::se::serialize::ReadSvgParameter(), te::qt::widgets::ReadSymbol(), te::se::serialize::Save(), te::color::ColorSchemeCatalog::setName(), te::qt::af::UpdateUserSettingsFile(), te::se::serialize::WriteGeometryPropertyHelper(), and te::map::serialize::WriteLayerGrouping().

void te::da::FunctionCatalogManager::insert ( const std::string &  dsType,
FunctionCatalog fcatalog 
)

It inserts the function catalog associated to the given data source type.

Parameters
dsTypeThe type of data source.
fcatalogThe function catalog. The manager will take the ownership of the given function catalog.
Exceptions
ExceptionIt throws an exception if a catalog is already registered for the given data source type.

Definition at line 39 of file FunctionCatalogManager.cpp.

References te::common::GetPValue(), and TE_TR.

Friends And Related Function Documentation

Definition at line 57 of file FunctionCatalogManager.h.

Member Data Documentation

std::map<std::string, FunctionCatalog*> te::da::FunctionCatalogManager::m_fcatalogMap
private

Function map: datasource-type -> FunctionCatalog*.

Definition at line 92 of file FunctionCatalogManager.h.

Referenced by ~FunctionCatalogManager().


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