A singleton for managing the data type converter available in the system.
More...
#include <DataConverterManager.h>
A singleton for managing the data type converter available in the system.
- See also
- DataTypeConverter
Definition at line 51 of file DataConverterManager.h.
◆ DataConverterManager()
te::dt::DataConverterManager::DataConverterManager |
( |
| ) |
|
|
protected |
◆ ~DataConverterManager()
te::dt::DataConverterManager::~DataConverterManager |
( |
| ) |
|
|
protected |
◆ add()
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. |
◆ clear()
void te::dt::DataConverterManager::clear |
( |
| ) |
|
◆ get() [1/2]
const DataTypeConverter& te::dt::DataConverterManager::get |
( |
const std::pair< int, int > & |
typeMap | ) |
|
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. |
◆ get() [2/2]
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.
◆ getInstance()
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
Definition at line 109 of file Singleton.h.
◆ te::common::Singleton< DataConverterManager >
◆ m_convMap
std::map<std::pair<int, int>, DataTypeConverter> te::dt::DataConverterManager::m_convMap |
|
private |
The documentation for this class was generated from the following file: