This singleton defines the TerraLib metadata record manager entry.  
 More...
#include <MetadataManager.h>
This singleton defines the TerraLib metadata record manager entry. 
Definition at line 49 of file MetadataManager.h.
 
      
        
          | te::md::MetadataManager::~MetadataManager  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | te::md::MetadataManager::MetadataManager  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
It initializes the Singleton. 
 
 
      
        
          | void te::md::MetadataManager::clear  | 
          ( | 
           | ) | 
           | 
        
      
 
Removes all the annotation from the manager. 
 
 
Removes the annotation from the manager and frees its resources. 
- Parameters
 - 
  
    | a | Pointer to the annnotation to be removed. This pointer will be freed and invalidated. | 
  
   
- Exceptions
 - 
  
    | te::md::Exception | If the annotation doesn't exist.  | 
  
   
 
 
Searches for an annotation, given its identification. 
- Parameters
 - 
  
    | aid | The name annotation identification. | 
  
   
- Returns
 - A pointer to the annotation if found or NULL otherwise. Class maintains the ownership of returned pointer. 
 
 
 
      
        
          | const std::map<std::string,MetadataAnnotation*>& te::md::MetadataManager::getAnnotations  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gives access to the set of metadata annotations. 
- Returns
 - A const reference to the set of annotation indexed by it's id. 
 
 
 
      
        
          | const std::map<std::string,MetadataAnnotation*>::const_iterator te::md::MetadataManager::getBeginIterator  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns a begin iterator to the annotations managed. 
 
 
      
        
          | const std::map<std::string,MetadataAnnotation*>::const_iterator te::md::MetadataManager::getEndIterator  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns an end iterator pointing to the annotations managed. 
 
 
It returns a reference to the singleton instance. 
- Returns
 - A reference to the singleton instance. 
 
 
 
Inserts a new metadata annotation to the manager. 
- Parameters
 - 
  
    | a | Pointer to the new metadata annotation. Class takes pointer ownership. Do not pass null. | 
  
   
- Exceptions
 - 
  
    | te::md::Exception | If the annotation is already managed.  | 
  
   
 
 
      
        
          | bool te::md::MetadataManager::isEmpty  | 
          ( | 
           | ) | 
           const | 
        
      
 
Check wheter the manager is empty. 
- Returns
 - True if there is no annotation in the manager and false otherwise. 
 
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/metadata/MetadataManager.h