SvgParameter.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/se/SvgParameter.h
22 
23  \brief A SvgParameter refers to an SVG/CSS graphical-formatting parameter.
24 */
25 
26 #ifndef __TERRALIB_SE_INTERNAL_SVGPARAMETER_H
27 #define __TERRALIB_SE_INTERNAL_SVGPARAMETER_H
28 
29 // TerraLib
30 #include "ParameterValue.h"
31 
32 namespace te
33 {
34  namespace se
35  {
36  /*!
37  \class SvgParameter
38 
39  \brief A SvgParameter refers to an SVG/CSS graphical-formatting parameter.
40 
41  The parameter is identified using the "name" attribute
42  and the content of the element gives the SVG/CSS-coded value.
43 
44  \ingroup se
45 
46  \sa ParameterValue
47  */
49  {
50  public:
51 
52  /** @name Initializer Methods
53  * Methods related to instantiation and destruction.
54  */
55  //@{
56 
57  /*!
58  \brief It initializes a new SvgParameter.
59 
60  \param name SVG parameter name.
61  */
62  SvgParameter(const std::string& name);
63 
64  /*!
65  \brief It initializes a new SvgParameter with the given value.
66 
67  \param name SVG parameter name.
68  \param value SVG parameter value.
69  */
70  SvgParameter(const std::string& name, const std::string& value);
71 
72  /*!
73  \brief Copy constructor.
74 
75  \param rhs The other svg parameter.
76  */
77  SvgParameter(const SvgParameter& rhs);
78 
79  /*! \brief Destructor. */
80  ~SvgParameter();
81 
82  //@}
83 
84  /** @name Accessors
85  * Methods for retrieving and setting properties.
86  */
87  //@{
88 
89  void setName(const std::string& name);
90 
91  std::string getName() const;
92 
93  //@}
94 
95  /*! \brief It creates a new copy of this object. */
96  SvgParameter* clone() const;
97 
98  private:
99 
100  std::string m_name; //!< The name attribute of the SvgParameter element. (Mandatory)
101  };
102 
103  } // end namespace se
104 } // end namespace te
105 
106 #endif // __TERRALIB_SE_INTERNAL_SVGPARAMETER_H
107 
The ParameterValueType uses WFS-Filter expressions to give values for SE graphic parameters.
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
URI C++ Library.
#define TESEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:187
A SvgParameter refers to an SVG/CSS graphical-formatting parameter.
Definition: SvgParameter.h:48
std::string m_name
The name attribute of the SvgParameter element. (Mandatory)
Definition: SvgParameter.h:100