#include <DataTypeManager.h>
 | 
| struct   | IdComparer | 
|   | A functor for comparing a pair of pointers to data types by id.  More...
  | 
|   | 
| struct   | NameComparer | 
|   | A functor for comparing a pair of pointers to data types by name.  More...
  | 
|   | 
 | 
| int  | add (const DataType &dt)  throw (te::dt::Exception) | 
|   | It adds a new data type to the system.  More...
  | 
|   | 
| int  | add (const std::string &name, const std::string &description)  throw (te::dt::Exception) | 
|   | It adds a new data type to the system.  More...
  | 
|   | 
| const DataType *  | find (int id) const  | 
|   | It finds a data type having the given id.  More...
  | 
|   | 
| const DataType *  | find (const std::string &name) const  | 
|   | It finds a data type having the given name.  More...
  | 
|   | 
| void  | remove (const DataType *dt) | 
|   | It removes the data type.  More...
  | 
|   | 
Definition at line 62 of file DataTypeManager.h.
 
  
  
      
        
          | te::dt::DataTypeManager::DataTypeManager  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | te::dt::DataTypeManager::~DataTypeManager  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | int te::dt::DataTypeManager::add  | 
          ( | 
          const DataType &  | 
          dt | ) | 
           | 
        
        
          | throw  | ( | te::dt::Exception | 
        
        
           | ) |  |  | 
        
      
 
It adds a new data type to the system. 
- Parameters
 - 
  
    | dt | The data type to be added. | 
  
   
- Returns
 - The id associated to the new data type on success (a number greater than 0).
 
- Exceptions
 - 
  
    | Exception | It throws an exception if a data type with the same name already exists in the system. | 
  
   
- Note
 - Not thread-safe. 
 
Definition at line 38 of file DataTypeManager.cpp.
 
 
      
        
          | int te::dt::DataTypeManager::add  | 
          ( | 
          const std::string &  | 
          name,  | 
        
        
           | 
           | 
          const std::string &  | 
          description  | 
        
        
           | 
          ) | 
           |  | 
        
        
          | throw  | ( | te::dt::Exception | 
        
        
           | ) |  |  | 
        
      
 
It adds a new data type to the system. 
- Parameters
 - 
  
    | name | The new data type name.  | 
    | description | The data type description. | 
  
   
- Returns
 - The id associated to the new data type on success (a number greater than 0).
 
- Exceptions
 - 
  
    | Exception | It throws an exception if a data type with the same name already exists in the system. | 
  
   
- Note
 - Not thread-safe. 
 
Definition at line 43 of file DataTypeManager.cpp.
References TR_DATATYPE.
 
 
It finds a data type having the given id. 
- Parameters
 - 
  
  
 
- Returns
 - The data type having the id or NULL if none is found. 
 
Definition at line 82 of file DataTypeManager.cpp.
 
 
      
        
          | const te::dt::DataType * te::dt::DataTypeManager::find  | 
          ( | 
          const std::string &  | 
          name | ) | 
           const | 
        
      
 
It finds a data type having the given name. 
- Parameters
 - 
  
  
 
- Returns
 - The data type having the name or NULL if none is found. 
 
Definition at line 94 of file DataTypeManager.cpp.
 
 
It returns a reference to the singleton instance. 
- Returns
 - A reference to the singleton instance. 
 
Definition at line 120 of file Singleton.h.
Referenced by BinaryLogicOpReader(), BinaryLogicOpWriter(), te::map::AbstractLayerRenderer::buildChart(), te::common::TaskProgress::cancel(), te::qt::widgets::SegmenterWizard::execute(), te::qt::widgets::Module::initialize(), te::qt::af::ApplicationController::initialize(), te::qt::af::ApplicationController::initializePlugins(), te::common::UserApplicationSettings::load(), te::qt::af::ApplicationPlugins::load(), te::qt::af::BaseApplication::makeDialog(), te::vp::IntersectionDialog::onOkPushButtonClicked(), te::vp::BufferDialog::onOkPushButtonClicked(), te::vp::AggregationDialog::onOkPushButtonClicked(), te::qt::af::BaseApplication::onStopDrawTriggered(), te::serialize::ReadFilter(), te::common::TaskProgress::setCurrentStep(), te::common::TaskProgress::setMessage(), te::color::ColorSchemeCatalog::setName(), te::common::TaskProgress::setTotalSteps(), te::common::TaskProgress::TaskProgress(), UnaryLogicOpReader(), UnaryLogicOpWriter(), and te::common::TaskProgress::~TaskProgress().
 
 
      
        
          | void te::dt::DataTypeManager::remove  | 
          ( | 
          const DataType *  | 
          dt | ) | 
           | 
        
      
 
 
  
  
      
        
          | int te::dt::DataTypeManager::sm_lastId | 
         
       
   | 
  
staticprivate   | 
  
 
 
The documentation for this class was generated from the following files:
- /home/castejon/castejon_files/develop/terralib5/git/src/terralib/datatype/DataTypeManager.h
 
- /home/castejon/castejon_files/develop/terralib5/git/src/terralib/datatype/DataTypeManager.cpp