27 #include "../common/Translator.h"
34 std::vector<std::size_t>& poslist)
36 const std::size_t size = properties.size();
38 for(std::size_t i = 0; i < size; ++i)
44 if(dataType ==
"VOID_TYPE")
46 else if(dataType ==
"BIT_TYPE")
48 else if(dataType ==
"CHAR_TYPE")
50 else if(dataType ==
"UCHAR_TYPE")
52 else if(dataType ==
"INT16_TYPE")
54 else if(dataType ==
"INT32_TYPE")
56 else if(dataType ==
"UINT32_TYPE")
58 else if(dataType ==
"INT64_TYPE")
60 else if(dataType ==
"UINT16_TYPE")
62 else if(dataType ==
"UINT64_TYPE")
64 else if(dataType ==
"BOOLEAN_TYPE")
66 else if(dataType ==
"FLOAT_TYPE")
68 else if(dataType ==
"DOUBLE_TYPE")
70 else if(dataType ==
"NUMERIC_TYPE")
72 else if(dataType ==
"STRING_TYPE")
74 else if(dataType ==
"BYTE_ARRAY_TYPE")
76 else if(dataType ==
"GEOMETRY_TYPE")
78 else if(dataType ==
"DATETIME_TYPE")
80 else if(dataType ==
"ARRAY_TYPE")
82 else if(dataType ==
"COMPOSITE_TYPE")
84 else if(dataType ==
"DATASET_TYPE")
86 else if(dataType ==
"RASTER_TYPE")
88 else if(dataType ==
"CINT16_TYPE")
90 else if(dataType ==
"CINT32_TYPE")
92 else if(dataType ==
"CFLOAT_TYPE")
94 else if(dataType ==
"CDOUBLE_TYPE")
96 else if(dataType ==
"XML_TYPE")
98 else if(dataType ==
"DATASETITEM_TYPE")
100 else if(dataType ==
"POLYMORPHIC_TYPE")
102 else if(dataType ==
"R4BITS_TYPE")
104 else if(dataType ==
"R2BITS_TYPE")
106 else if(dataType ==
"R1BIT_TYPE")
115 return TE_TR(
"Void");
119 return TE_TR(
"Char");
121 return TE_TR(
"Unsigned Char");
123 return TE_TR(
"Integer 16");
125 return TE_TR(
"Integer 32");
127 return TE_TR(
"Unsigned Integer 32");
129 return TE_TR(
"Integer 64");
131 return TE_TR(
"Unsigned Integer 16");
133 return TE_TR(
"Unsigned Integer 64");
135 return TE_TR(
"Boolean");
137 return TE_TR(
"Float");
139 return TE_TR(
"Double");
141 return TE_TR(
"Numeric");
143 return TE_TR(
"String");
145 return TE_TR(
"Byte Array");
147 return TE_TR(
"Geometry");
149 return TE_TR(
"Date Time");
151 return TE_TR(
"Array");
153 return TE_TR(
"Composite");
155 return TE_TR(
"Dataset");
157 return TE_TR(
"Raster");
159 return TE_TR(
"Complex Integer 16");
161 return TE_TR(
"Complex Integer 32");
163 return TE_TR(
"Complex Float");
165 return TE_TR(
"Complex Double");
169 return TE_TR(
"Dataset Item");
171 return TE_TR(
"Polymorphic");
173 return TE_TR(
"Raster 4 Bits");
175 return TE_TR(
"Raster 2 Bits");
177 return TE_TR(
"Raster 1 Bit");
179 return TE_TR(
"Unknown");
TEDATATYPEEXPORT std::string ConvertDataTypeToString(const int &dataType)
Function used to convert from a int (Data Type Enum) to a string.
A base class for a compound property (non-atomic properties).
A base class for a compound properties (non-atomic properties).
Utilitary function for data type module.
#define TE_TR(message)
It marks a string in order to get translated.
TEDATATYPEEXPORT void GetPropertiesPosition(const std::vector< Property * > &properties, const CompositeProperty *cp, std::vector< std::size_t > &poslist)
It creates a list with the properties position in the composite property.
std::size_t getPropertyPosition(const std::string &name) const
It returns the property position based on its name.
It models a property definition.
TEDATATYPEEXPORT int Convert2Terralib(const std::string &dataType)
It convert a string to a DataType.