All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SimpleLink.cpp
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.cpp
22 
23  \brief Simple link.
24  */
25 
26 // TerraLib
27 #include "Globals.h"
28 #include "SimpleLink.h"
29 
31  : m_show(SHOW_NONE),
32  m_actuate(ACTUATE_NONE)
33 {
34 }
35 
37 {
38 }
39 
40 const std::string& te::xl::SimpleLink::getType()
41 {
42  return Globals::sm_xlinkType;
43 }
44 
45 void te::xl::SimpleLink::setHref(const std::string& href)
46 {
47  m_href = href;
48 }
49 
50 const std::string& te::xl::SimpleLink::getHref() const
51 {
52  return m_href;
53 }
54 
55 void te::xl::SimpleLink::setRole(const std::string& role)
56 {
57  m_role = role;
58 }
59 
60 const std::string& te::xl::SimpleLink::getRole() const
61 {
62  return m_role;
63 }
64 
65 void te::xl::SimpleLink::setArcRole(const std::string& arcrole)
66 {
67  m_arcrole = arcrole;
68 }
69 
70 const std::string& te::xl::SimpleLink::getArcRole() const
71 {
72  return m_arcrole;
73 }
74 
75 void te::xl::SimpleLink::setTitle(const std::string& title)
76 {
77  m_title = title;
78 }
79 
80 const std::string& te::xl::SimpleLink::getTitle() const
81 {
82  return m_title;
83 }
84 
86 {
87  m_show = show;
88 }
89 
91 {
92  return m_show;
93 }
94 
96 {
97  m_actuate = actuate;
98 }
99 
101 {
102  return m_actuate;
103 }
104 
106 {
107  SimpleLink* sl = new SimpleLink;
108 
109  sl->m_href = m_href;
110  sl->m_role = m_role;
111  sl->m_arcrole = m_arcrole;
112  sl->m_title = m_title;
113  sl->m_show = m_show;
114  sl->m_actuate = m_actuate;
115 
116  return sl;
117 }
ShowType
The show type attribute is used to communicate the desired presentation of the ending resource on tra...
Definition: Enumerators.h:42
ActuateType
The actuate type attribute is used to communicate the desired timing of traversal from the starting r...
Definition: Enumerators.h:62
static const std::string sm_xlinkType
Fixed value for SimpleLink: "xlink:simple".
Definition: Globals.h:53