26 #ifndef __TERRALIB_DATATYPE_INTERNAL_DATACONVERTERMANAGER_H
27 #define __TERRALIB_DATATYPE_INTERNAL_DATACONVERTERMANAGER_H
30 #include "../common/Singleton.h"
109 std::pair<int, int> mapping(src, dst);
Definition of data type converter.
Template support for singleton pattern.
A singleton for managing the data type converter available in the system.
DataConverterManager()
Constructor.
const DataTypeConverter & get(const std::pair< int, int > &typeMap)
It returns a data type converter for the given source and destination data types.
void clear()
Clear the container.
void add(int src, int dst, DataTypeConverter conv)
It adds a converter to the list of known data type mappings.
std::map< std::pair< int, int >, DataTypeConverter > m_convMap
A map: (source-data-type, target-data-type) -> data type converter.
const DataTypeConverter & get(int src, int dst)
It returns a data type converter for the given source and destination data types.
~DataConverterManager()
Destructor.
boost::function1< AbstractData *, AbstractData * > DataTypeConverter
The definition of the data type converter.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).
An exception class for the XML module.