A singleton for managing the data type converter available in the system.
More...
#include <DataConverterManager.h>
|
void | add (int src, int dst, DataTypeConverter conv) throw (Exception) |
| It adds a converter to the list of known data type mappings. More...
|
|
void | clear () |
| Clear the container. More...
|
|
const DataTypeConverter & | get (int src, int dst) throw (Exception) |
| It returns a data type converter for the given source and destination data types. More...
|
|
const DataTypeConverter & | get (const std::pair< int, int > &typeMap) throw (Exception) |
| It returns a data type converter for the given source and destination data types. More...
|
|
A singleton for managing the data type converter available in the system.
- See also
- DataTypeConverter
Definition at line 51 of file DataConverterManager.h.
te::dt::DataConverterManager::DataConverterManager |
( |
| ) |
|
|
protected |
te::dt::DataConverterManager::~DataConverterManager |
( |
| ) |
|
|
protected |
It adds a converter to the list of known data type mappings.
- Parameters
-
src | The source data type of the converter. |
dst | The destination data type of the converter. |
conv | The data type converter. |
- Exceptions
-
Exception | It throws an exception if a converter for the same source and destination data types already exists. |
void te::dt::DataConverterManager::clear |
( |
| ) |
|
It returns a data type converter for the given source and destination data types.
- Parameters
-
src | The source data type of the converter. |
dst | The destination data type of the converter. |
- Returns
- A data type converter for the given source and destination data types. or NULL if none is found.
- Exceptions
-
Exception | It throws an exception if none is found. |
Definition at line 107 of file DataConverterManager.h.
It returns a data type converter for the given source and destination data types.
- Parameters
-
typeMap | The type of converter: source-data-type -> destination-data-type. |
- Returns
- A data type converter for the given map.
- Exceptions
-
Exception | It throws an exception if none is found. |
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
std::map<std::pair<int, int>, DataTypeConverter> te::dt::DataConverterManager::m_convMap |
|
private |
The documentation for this class was generated from the following file: