25 #include "../common/Exception.h"
26 #include "../common/Translator.h"
46 std::map<std::string,MetadataAnnotation*>::const_iterator it = m_metadata.find(a->
getAnnotationtId());
48 if (it != m_metadata.end())
59 std::map<std::string,MetadataAnnotation*>::iterator it = m_metadata.find(a->
getAnnotationtId());
61 if (it == m_metadata.end())
73 std::map<std::string,MetadataAnnotation*>::const_iterator it = m_metadata.find(aid);
75 if (it == m_metadata.end())
81 const std::map<std::string,te::md::MetadataAnnotation*>&
91 return m_metadata.empty();
100 const std::map<std::string,te::md::MetadataAnnotation*>::const_iterator
103 return m_metadata.begin();
106 const std::map<std::string,te::md::MetadataAnnotation*>::const_iterator
109 return m_metadata.end();
const std::map< std::string, MetadataAnnotation * >::const_iterator getEndIterator() const
Returns an end iterator pointing to the annotations managed.
const std::map< std::string, MetadataAnnotation * >::const_iterator getBeginIterator() const
Returns a begin iterator to the annotations managed.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
#define TR_METADATA(message)
It marks a string in order to get translated. This is a special mark used in the Plugin module of Ter...
void clear()
Removes all the annotation from the manager.
void insert(MetadataAnnotation *a)
Inserts a new metadata annotation to the manager.
const MetadataAnnotation * find(const std::string &aid) const
Searches for an annotation, given its identification.
void erase(MetadataAnnotation *a)
Removes the annotation from the manager and frees its resources.
MetadataManager()
It initializes the Singleton.
A class o relate a metadata annotation to a TerraLib element (or entity).
~MetadataManager()
Destructor.
const std::string & getAnnotationtId() const
Gets the annotation identifier.
Configuration flags for the Metadata support of TerraLib.
bool isEmpty() const
Check wheter the manager is empty.
const std::map< std::string, MetadataAnnotation * > & getAnnotations() const
Gives access to the set of metadata annotations.