#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 |
Constructor for singletons is protected.
te::dt::DataTypeManager::~DataTypeManager |
( |
| ) |
|
|
protected |
Destructor for singletons is 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.
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.
const DataType* te::dt::DataTypeManager::find |
( |
int |
id | ) |
const |
It finds a data type having the given id.
- Parameters
-
- Returns
- The data type having the id or NULL if none is found.
const 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.
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
void te::dt::DataTypeManager::remove |
( |
const DataType * |
dt | ) |
|
It removes the data type.
- Parameters
-
int te::dt::DataTypeManager::sm_lastId |
|
staticprivate |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/datatype/DataTypeManager.h