26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_DATASETTYPECONVERTER_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_DATASETTYPECONVERTER_H
30 #include "../../common/CharEncodingConv.h"
31 #include "../Config.h"
50 class DataSourceCapabilities;
121 void getNonConvertedProperties(std::vector<std::string>& propertyNames)
const;
128 void getNonConvertedProperties(std::vector<std::size_t>& propertyPos)
const;
136 void getConvertedProperties(
const std::string& propertyName, std::vector<std::size_t>& convertedPropertyPos);
144 void getConvertedProperties(std::size_t propertyPos, std::vector<std::size_t>& convertedPropertyPos);
153 std::string getConverterName(std::size_t propertyPos);
160 void remove(
const std::string& propertyName);
167 void remove(std::size_t propertyPos);
176 void add(
const std::string& propertyName,
te::dt::Property* p,
const std::string& attributeConverterName =
"GenericAttributeConverter");
185 void add(std::size_t propertyPos,
te::dt::Property* p,
const std::string& attributeConverterName =
"GenericAttributeConverter");
203 void add(
const std::vector<std::string>& propertyNames,
te::dt::Property* p,
const std::string& attributeConverterName =
"GenericAttributeConverter");
212 void add(
const std::vector<std::size_t>& propertyPos,
te::dt::Property* p,
const std::string& attributeConverterName =
"GenericAttributeConverter");
235 const std::vector<std::vector<std::size_t> >& getConvertedPropertyIndexes()
const;
237 const std::vector<AttributeConverter>& getConverters()
const;
241 bool isConverted(std::size_t i)
const;
256 #endif // __TERRALIB_DATAACCESS_INTERNAL_DATASETTYPECONVERTER_H
DataSetType * m_outDataSetType
The converted DataSetType.
CharEncoding
Supported charsets (character encoding).
A class that models the description of a dataset.
std::vector< std::vector< std::size_t > > m_propertyIndexes
A vector that stores the converted property indexes.
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
It models a property definition.
An converter for DataSetType.
te::da::DataSourceCapabilities capabilities
boost::function3< te::dt::AbstractData *, DataSet *, const std::vector< std::size_t > &, int > AttributeConverter
The type of attribute converter functions.
Definition of attribute converter and a set of them.
std::vector< std::size_t > m_convertedProperties
Internal vector to count the references to converted properties.
std::vector< AttributeConverter > m_converters
A vector that stores the attribute converters functions.
DataSetType * m_inDataSetType
A pointer to DataSetType that will be converted.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::vector< std::string > m_functionsNames
A vector that stores the attribute converters functions names.