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...
  | 
|   | 
| 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   | 
  
 
 
      
        
          | void te::dt::DataConverterManager::add  | 
          ( | 
          int  | 
          src,  | 
        
        
           | 
           | 
          int  | 
          dst,  | 
        
        
           | 
           | 
          DataTypeConverter  | 
          conv  | 
        
        
           | 
          ) | 
           |  | 
        
        
          | throw  | ( | Exception | 
        
        
           | ) |  |  | 
        
      
 
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.  | 
  
   
Definition at line 33 of file DataConverterManager.cpp.
References TR_DATATYPE.
Referenced by te::dt::Module::initialize().
 
 
  
  
      
        
          | const DataTypeConverter & te::dt::DataConverterManager::get  | 
          ( | 
          int  | 
          src,  | 
         
        
           | 
           | 
          int  | 
          dst  | 
         
        
           | 
          ) | 
           |  | 
         
        
          | throw  | ( | Exception | 
         
        
           | ) |  |  | 
         
       
   | 
  
inline   | 
  
 
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 104 of file DataConverterManager.h.
 
 
      
        
          | const te::dt::DataTypeConverter & te::dt::DataConverterManager::get  | 
          ( | 
          const std::pair< int, int > &  | 
          typeMap | ) | 
           | 
        
        
          | throw  | ( | Exception | 
        
        
           | ) |  |  | 
        
      
 
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.  | 
  
   
Definition at line 44 of file DataConverterManager.cpp.
References TR_DATATYPE.
 
 
  
  
      
        
          | std::map<std::pair<int, int>, DataTypeConverter> te::dt::DataConverterManager::m_convMap | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: