A class o relate a metadata annotation to a TerraLib element (or entity). More...
#include <MetadataAnnotation.h>
Public Member Functions | |
const std::string & | getAnnotationtId () const |
Gets the annotation identifier. More... | |
const std::string & | getAnnotationURI () const |
Gets the link to the metadata. More... | |
const std::string & | getElementId () const |
Gets the element being annotated identifier. More... | |
const std::string & | getElementName () const |
Gets the element being annotated name. More... | |
MetadataAnnotation (const std::string &aid=std::string("")) | |
Constructor. More... | |
void | setAnnotationURI (const std::string &uri) |
Sets the link to the metadata. More... | |
void | setElementId (const std::string &eid) |
Sets the TerrsLib element idenfification. More... | |
void | setElementName (const std::string &ename) |
Set the element being annotated name. More... | |
~MetadataAnnotation () | |
Destructor. More... | |
Private Attributes | |
std::string | m_annotId |
std::string | m_annotURI |
std::string | m_elementId |
std::string | m_elementName |
A class o relate a metadata annotation to a TerraLib element (or entity).
Definition at line 43 of file MetadataAnnotation.h.
te::md::MetadataAnnotation::MetadataAnnotation | ( | const std::string & | aid = std::string("") | ) |
Constructor.
aid | The annotation unique id. If empty, the constructor will provide one. |
Definition at line 36 of file MetadataAnnotation.cpp.
References m_annotId.
te::md::MetadataAnnotation::~MetadataAnnotation | ( | ) |
Destructor.
Definition at line 49 of file MetadataAnnotation.cpp.
const std::string & te::md::MetadataAnnotation::getAnnotationtId | ( | ) | const |
Gets the annotation identifier.
Definition at line 53 of file MetadataAnnotation.cpp.
Referenced by te::md::MetadataManager::erase(), and te::md::MetadataManager::insert().
const std::string & te::md::MetadataAnnotation::getAnnotationURI | ( | ) | const |
Gets the link to the metadata.
Definition at line 67 of file MetadataAnnotation.cpp.
const std::string & te::md::MetadataAnnotation::getElementId | ( | ) | const |
Gets the element being annotated identifier.
Definition at line 81 of file MetadataAnnotation.cpp.
const std::string & te::md::MetadataAnnotation::getElementName | ( | ) | const |
Gets the element being annotated name.
Definition at line 95 of file MetadataAnnotation.cpp.
void te::md::MetadataAnnotation::setAnnotationURI | ( | const std::string & | uri | ) |
Sets the link to the metadata.
uri | The link to the metadata. |
Definition at line 59 of file MetadataAnnotation.cpp.
void te::md::MetadataAnnotation::setElementId | ( | const std::string & | eid | ) |
Sets the TerrsLib element idenfification.
edi | The TerraLib element identification id. Do not pass empty. |
Definition at line 73 of file MetadataAnnotation.cpp.
void te::md::MetadataAnnotation::setElementName | ( | const std::string & | ename | ) |
Set the element being annotated name.
ename | The element being annnotated name. Do not pass null. |
Definition at line 87 of file MetadataAnnotation.cpp.
|
private |
Definition at line 92 of file MetadataAnnotation.h.
Referenced by MetadataAnnotation().
|
private |
Definition at line 93 of file MetadataAnnotation.h.
|
private |
Definition at line 94 of file MetadataAnnotation.h.
|
private |
Definition at line 95 of file MetadataAnnotation.h.