Loading...
Searching...
No Matches
SimpleLink.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 SimpleLink.h
22
23 \brief Simple link.
24 */
25
26#ifndef __TERRALIB_XLINK_INTERNAL_SIMPLELINK_H
27#define __TERRALIB_XLINK_INTERNAL_SIMPLELINK_H
28
29// TerraLib
30#include "Config.h"
31#include "Enumerators.h"
32
33// STL
34#include <string>
35
36namespace te
37{
38 namespace xl
39 {
40 /*!
41 \class SimpleLink
42
43 \brief Simple link.
44
45 Attributes grouped by XLink type, as specified in the W3C
46 Proposed Recommendation (dated 2000-12-20).
47 */
49 {
50 public:
51
52 /** @name Initializer Methods
53 * Methods related to instantiation and destruction.
54 */
55 //@{
56
57 /*! \brief It initializes a new SimpleLink. */
59
60 /*! \brief Destructor. */
62
63 //@}
64
65 /** @name Accessor methods
66 * Methods used to get or set properties.
67 */
68 //@{
69
70 const std::string& getType();
71
72 void setHref(const std::string& href);
73
74 const std::string& getHref() const;
75
76 void setRole(const std::string& role);
77
78 const std::string& getRole() const;
79
80 void setArcRole(const std::string& arcrole);
81
82 const std::string& getArcRole() const;
83
84 void setTitle(const std::string& title);
85
86 const std::string& getTitle() const;
87
88 void setShow(ShowType show);
89
91
92 void setActuate(ActuateType actuate);
93
95
96 //@}
97
98 /*! \brief It creates a new copy of this object. */
99 SimpleLink* clone() const;
100
101 private:
102
103 std::string m_href; //!< Locator attribute. (Optional)
104 std::string m_role; //!< Semantic attribute. (Optional)
105 std::string m_arcrole; //!< Semantic attribute. (Optional)
106 std::string m_title; //!< Semantic attribute. (Optional)
107 ShowType m_show; //!< Behavior attributes. Default: none. (Optional)
108 ActuateType m_actuate; //!< Behavior attributes. Default: none. (Optional)
109 };
110
111 } // end namespace xl
112} // end namespace te
113
114#endif // __TERRALIB_XLINK_INTERNAL_SIMPLELINK_H
115
116
Several enumerators for XLink support.
ShowType
The show type attribute is used to communicate the desired presentation of the ending resource on tra...
Definition: Enumerators.h:43
ActuateType
The actuate type attribute is used to communicate the desired timing of traversal from the starting r...
Definition: Enumerators.h:63
TerraLib.
Proxy configuration file for TerraView (see terraview_config.h).