All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimpleLink.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 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 
void setShow(ShowType show)
Definition: SimpleLink.cpp:85
void setHref(const std::string &href)
Definition: SimpleLink.cpp:45
const std::string & getArcRole() const
Definition: SimpleLink.cpp:70
~SimpleLink()
Destructor.
Definition: SimpleLink.cpp:36
const std::string & getHref() const
Definition: SimpleLink.cpp:50
void setActuate(ActuateType actuate)
Definition: SimpleLink.cpp:95
void setTitle(const std::string &title)
Definition: SimpleLink.cpp:75
ShowType getShow() const
Definition: SimpleLink.cpp:90
ActuateType
The actuate type attribute is used to communicate the desired timing of traversal from the starting r...
Definition: Enumerators.h:62
ActuateType getActuate() const
Definition: SimpleLink.cpp:100
SimpleLink()
It initializes a new SimpleLink.
Definition: SimpleLink.cpp:30
const std::string & getRole() const
Definition: SimpleLink.cpp:60
const std::string & getType()
Definition: SimpleLink.cpp:40
static const std::string sm_xlinkType
Fixed value for SimpleLink: &quot;xlink:simple&quot;.
Definition: Globals.h:53
void setRole(const std::string &role)
Definition: SimpleLink.cpp:55
void setArcRole(const std::string &arcrole)
Definition: SimpleLink.cpp:65
const std::string & getTitle() const
Definition: SimpleLink.cpp:80
ShowType
The show type attribute is used to communicate the desired presentation of the ending resource on tra...
Definition: Enumerators.h:42