26 #ifndef __TERRALIB_DATATYPE_INTERNAL_DATATYPEMANAGER_H
27 #define __TERRALIB_DATATYPE_INTERNAL_DATATYPEMANAGER_H
30 #include "../common/Singleton.h"
93 int add(
const std::string& name,
const std::string& description);
It stores information about a data type.
Template support for singleton pattern.
const DataType * find(int id) const
It finds a data type having the given id.
int add(const DataType &dt)
It adds a new data type to the system.
~DataTypeManager()
Destructor for singletons is protected.
static int sm_lastId
The id value of the last inserted data type.
void remove(const DataType *dt)
It removes the data type.
int add(const std::string &name, const std::string &description)
It adds a new data type to the system.
std::set< DataType *, NameComparer > m_nameIdx
The set of data types ordered by name.
const DataType * find(const std::string &name) const
It finds a data type having the given name.
std::set< DataType *, IdComparer > m_types
The set of data types ordered by id.
DataTypeManager()
Constructor for singletons is protected.
It stores information about a data type.
int getId() const
It returns the data type id.
const std::string & getName() const
It returns the data type name.
A functor for comparing a pair of pointers to data types by id.
bool operator()(const DataType *f, const DataType *s) const
A functor for comparing a pair of pointers to data types by name.
bool operator()(const DataType *f, const DataType *s) const
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
An exception class for the XML module.