It stores information about a data type. More...
#include <DataType.h>
Public Member Functions | |
DataType () | |
Default constructor. More... | |
DataType (const std::string &name, const std::string &description) | |
Constructor. More... | |
const std::string & | getDescription () const |
It returns the data type description. More... | |
int | getId () const |
It returns the data type id. More... | |
const std::string & | getName () const |
It returns the data type name. More... | |
bool | operator< (const DataType &rhs) const |
It compares two data types by their ids. More... | |
~DataType () | |
Destructor. More... | |
Private Member Functions | |
DataType (int id, const std::string &name, const std::string &description) | |
Constructor. More... | |
void | setId (int id) |
This method can be called only by DataTypeManager. More... | |
Private Attributes | |
std::string | m_description |
Data type description. More... | |
int | m_id |
Data type id assigned by TerraLib. More... | |
std::string | m_name |
Data type name. More... | |
Friends | |
class | DataTypeManager |
It stores information about a data type.
A singleton for managing all data types in the system.
TerraLib keeps information about all available data types in the system in a singleton called DataTypeManager. In this singleton you will find all supported data types.
Some of the data type codes are reserved for the built-in data types of TerraLib (they can be seen in defines).
TerraLib keeps information about all available data types in this singleton. Here, you can find all supported data types.
Basic constraints for data types:
Definition at line 55 of file DataType.h.
|
inline |
Default constructor.
Definition at line 60 of file DataType.h.
|
inline |
Constructor.
name | The data type name. |
description | Data type description. |
Definition at line 128 of file DataType.h.
|
inline |
Destructor.
Definition at line 71 of file DataType.h.
|
inlineprivate |
Constructor.
id | The data type id assigned by TerraLib. |
name | The data type name. |
description | Data type description. |
Definition at line 148 of file DataType.h.
const std::string& te::dt::DataType::getDescription | ( | ) | const |
It returns the data type description.
|
inline |
It returns the data type id.
Definition at line 133 of file DataType.h.
References m_id.
Referenced by te::dt::DataTypeManager::IdComparer::operator()().
|
inline |
It returns the data type name.
Definition at line 138 of file DataType.h.
References m_name.
Referenced by te::dt::DataTypeManager::NameComparer::operator()().
|
inline |
It compares two data types by their ids.
Definition at line 143 of file DataType.h.
References m_id.
|
inlineprivate |
This method can be called only by DataTypeManager.
id | The type code. |
Definition at line 153 of file DataType.h.
References m_id.
|
friend |
Definition at line 125 of file DataType.h.
|
private |
Data type description.
Definition at line 123 of file DataType.h.
|
private |
Data type id assigned by TerraLib.
Definition at line 121 of file DataType.h.
Referenced by getId(), operator<(), and setId().
|
private |