#include <DataTypeManager.h>
|
struct | IdComparer |
| A functor for comparing a pair of pointers to data types by id. More...
|
|
struct | NameComparer |
| A functor for comparing a pair of pointers to data types by name. More...
|
|
|
int | add (const DataType &dt) throw (te::dt::Exception) |
| It adds a new data type to the system. More...
|
|
int | add (const std::string &name, const std::string &description) throw (te::dt::Exception) |
| It adds a new data type to the system. More...
|
|
const DataType * | find (int id) const |
| It finds a data type having the given id. More...
|
|
const DataType * | find (const std::string &name) const |
| It finds a data type having the given name. More...
|
|
void | remove (const DataType *dt) |
| It removes the data type. More...
|
|
Definition at line 62 of file DataTypeManager.h.
te::dt::DataTypeManager::DataTypeManager |
( |
| ) |
|
|
protected |
te::dt::DataTypeManager::~DataTypeManager |
( |
| ) |
|
|
protected |
int te::dt::DataTypeManager::add |
( |
const DataType & |
dt | ) |
|
throw | ( | te::dt::Exception |
| ) | | |
It adds a new data type to the system.
- Parameters
-
dt | The data type to be added. |
- Returns
- The id associated to the new data type on success (a number greater than 0).
- Exceptions
-
Exception | It throws an exception if a data type with the same name already exists in the system. |
- Note
- Not thread-safe.
Definition at line 38 of file DataTypeManager.cpp.
int te::dt::DataTypeManager::add |
( |
const std::string & |
name, |
|
|
const std::string & |
description |
|
) |
| |
throw | ( | te::dt::Exception |
| ) | | |
It adds a new data type to the system.
- Parameters
-
name | The new data type name. |
description | The data type description. |
- Returns
- The id associated to the new data type on success (a number greater than 0).
- Exceptions
-
Exception | It throws an exception if a data type with the same name already exists in the system. |
- Note
- Not thread-safe.
Definition at line 43 of file DataTypeManager.cpp.
References TE_TR.
It finds a data type having the given id.
- Parameters
-
- Returns
- The data type having the id or NULL if none is found.
Definition at line 82 of file DataTypeManager.cpp.
const te::dt::DataType * te::dt::DataTypeManager::find |
( |
const std::string & |
name | ) |
const |
It finds a data type having the given name.
- Parameters
-
- Returns
- The data type having the name or NULL if none is found.
Definition at line 94 of file DataTypeManager.cpp.
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::dt::DataTypeManager::remove |
( |
const DataType * |
dt | ) |
|
int te::dt::DataTypeManager::sm_lastId |
|
staticprivate |
The documentation for this class was generated from the following files: