A FunctionCatalogManager is a singleton that can be used to manage function catalogs of data source implementations. More...
#include <FunctionCatalogManager.h>
Public Member Functions | |
FunctionCatalog * | find (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 > |
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.
Definition at line 55 of file FunctionCatalogManager.h.
te::da::FunctionCatalogManager::~FunctionCatalogManager | ( | ) |
Destructor.
Definition at line 34 of file FunctionCatalogManager.cpp.
References te::common::FreeContents(), and m_fcatalogMap.
|
inlineprotected |
No constructor available for clients.
Definition at line 88 of file FunctionCatalogManager.h.
te::da::FunctionCatalog * te::da::FunctionCatalogManager::find | ( | const std::string & | dsType | ) |
It finds the function catalog with the given data source type.
dsType | The data source type. |
Definition at line 47 of file FunctionCatalogManager.cpp.
References te::common::GetPValue().
|
inlinestaticinherited |
It 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.
dsType | The type of data source. |
fcatalog | The function catalog. The manager will take the ownership of the given function catalog. |
Exception | It 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.
|
friend |
Definition at line 57 of file FunctionCatalogManager.h.
|
private |
Function map: datasource-type -> FunctionCatalog*.
Definition at line 92 of file FunctionCatalogManager.h.
Referenced by ~FunctionCatalogManager().