Loading...
Searching...
No Matches
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
34namespace 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 */
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.
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
A class to relate a metadata annotation to a TerraLib element (or entity).
const std::string & getAnnotationtId() const
Gets the annotation identifier.
~MetadataAnnotation()
Destructor.
void setElementName(const std::string &ename)
Set the element being annotated name.
const std::string & getAnnotationURI() const
Gets the link to the metadata.
void setAnnotationURI(const std::string &uri)
Sets the link to the metadata.
const std::string & getElementName() const
Gets the element being annotated name.
const std::string & getElementId() const
Gets the element being annotated identifier.
MetadataAnnotation(const std::string &aid=std::string(""))
Constructor.
void setElementId(const std::string &eid)
Sets the TerrsLib element idenfification.
TerraLib.
#define TEMDEXPORT
Definition: Config.h:61
Proxy configuration file for TerraView (see terraview_config.h).