MetadataAnnotation.h
Go to the documentation of this file.
1
/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3
This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5
TerraLib is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 3 of the License,
8
or (at your option) any later version.
9
10
TerraLib is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with TerraLib. See COPYING. If not, write to
17
TerraLib Team at <terralib-team@terralib.org>.
18
*/
19
20
/*!
21
\file terralib/metadata/MetadataAnnotation.h
22
\brief
23
*/
24
25
#ifndef __TERRALIB_METADATA_INTERNAL_METADATAANNOTATION_H
26
#define __TERRALIB_METADATA_INTERNAL_METADATAANNOTATION_H
27
28
// TerraLib
29
#include "
Config.h
"
30
31
// STL
32
#include <string>
33
34
namespace
te
35
{
36
namespace
md
37
{
38
/*!
39
\class MetadataAnnotation
40
41
\brief A class to relate a metadata annotation to a TerraLib element (or entity).
42
*/
43
class
TEMDEXPORT
MetadataAnnotation
44
{
45
public
:
46
/*!
47
\brief Constructor.
48
49
\param aid The annotation unique id. If empty, the constructor will provide one.
50
*/
51
MetadataAnnotation
(
const
std::string& aid = std::string(
""
));
52
53
//! Destructor.
54
~MetadataAnnotation
();
55
56
//! Gets the annotation identifier.
57
const
std::string&
getAnnotationtId
()
const
;
58
59
/*!
60
\brief Sets the link to the metadata.
61
\param uri The link to the metadata.
62
*/
63
void
setAnnotationURI
(
const
std::string& uri);
64
65
//! Gets the link to the metadata.
66
const
std::string&
getAnnotationURI
()
const
;
67
68
/*!
69
\brief Sets the TerrsLib element idenfification.
70
\param edi The TerraLib element identification id. Do not pass empty.
71
*/
72
void
setElementId
(
const
std::string& eid);
73
74
75
//! Gets the element being annotated identifier.
76
const
std::string&
getElementId
()
const
;
77
78
79
/*!
80
\brief Set the element being annotated name.
81
\param ename The element being annnotated name. Do not pass null.
82
*/
83
void
setElementName
(
const
std::string& ename);
84
85
/*!
86
\brief Gets the element being annotated name.
87
*/
88
const
std::string&
getElementName
()
const
;
89
90
private
:
91
92
std::string
m_annotId
;
93
std::string
m_annotURI
;
94
std::string
m_elementId
;
95
std::string
m_elementName
;
96
};
97
}
98
}
99
#endif
//__TERRALIB_METADATA_INTERNAL_METADATAANNOTATION_H
te::md::MetadataAnnotation
A class to relate a metadata annotation to a TerraLib element (or entity).
Definition:
MetadataAnnotation.h:44
te::md::MetadataAnnotation::getElementId
const std::string & getElementId() const
Gets the element being annotated identifier.
te::md::MetadataAnnotation::m_elementId
std::string m_elementId
Definition:
MetadataAnnotation.h:94
te::md::MetadataAnnotation::getAnnotationURI
const std::string & getAnnotationURI() const
Gets the link to the metadata.
te::md::MetadataAnnotation::~MetadataAnnotation
~MetadataAnnotation()
Destructor.
te::md::MetadataAnnotation::setElementName
void setElementName(const std::string &ename)
Set the element being annotated name.
te::md::MetadataAnnotation::m_elementName
std::string m_elementName
Definition:
MetadataAnnotation.h:95
te::md::MetadataAnnotation::getElementName
const std::string & getElementName() const
Gets the element being annotated name.
te::md::MetadataAnnotation::setAnnotationURI
void setAnnotationURI(const std::string &uri)
Sets the link to the metadata.
te::md::MetadataAnnotation::getAnnotationtId
const std::string & getAnnotationtId() const
Gets the annotation identifier.
te::md::MetadataAnnotation::m_annotId
std::string m_annotId
Definition:
MetadataAnnotation.h:92
te::md::MetadataAnnotation::m_annotURI
std::string m_annotURI
Definition:
MetadataAnnotation.h:93
te::md::MetadataAnnotation::MetadataAnnotation
MetadataAnnotation(const std::string &aid=std::string(""))
Constructor.
te::md::MetadataAnnotation::setElementId
void setElementId(const std::string &eid)
Sets the TerrsLib element idenfification.
te
TerraLib.
Definition:
AddressGeocodingOp.h:52
TEMDEXPORT
#define TEMDEXPORT
Definition:
Config.h:61
Config.h
Proxy configuration file for TerraView (see terraview_config.h).
git_release
src
terralib
metadata
MetadataAnnotation.h
Generated on Mon Jun 5 2023 10:44:30 for TerraLib by
1.9.1