26 #ifndef __TERRALIB_DATATYPE_INTERNAL_DATATYPEMANAGER_H
27 #define __TERRALIB_DATATYPE_INTERNAL_DATATYPEMANAGER_H
30 #include "../common/Singleton.h"
79 int add(
const DataType& dt)
throw(te::dt::Exception);
93 int add(
const std::string& name,
const std::string& description)
throw(te::dt::Exception);
118 const DataType* find(
const std::string& name)
const;
165 #endif // __TERRALIB_DATATYPE_INTERNAL_DATATYPEMANAGER_H
It stores information about a data type.
It stores information about a data type.
std::set< DataType *, NameComparer > m_nameIdx
The set of data types ordered by name.
An exception class for the DataType module.
A functor for comparing a pair of pointers to data types by name.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
const std::string & getName() const
It returns the data type name.
bool operator()(const DataType *f, const DataType *s) const
std::set< DataType *, IdComparer > m_types
The set of data types ordered by id.
static int sm_lastId
The id value of the last inserted data type.
int getId() const
It returns the data type id.
bool operator()(const DataType *f, const DataType *s) const
A functor for comparing a pair of pointers to data types by id.
Template support for singleton pattern.