MapItem.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/MapItem.h
22 
23  \brief
24 */
25 
26 #ifndef __TERRALIB_SE_INTERNAL_MAPITEM_H
27 #define __TERRALIB_SE_INTERNAL_MAPITEM_H
28 
29 // TerraLib
30 #include "../fe/Expression.h"
31 #include "Config.h"
32 
33 // STL
34 #include <string>
35 
36 namespace te
37 {
38  namespace se
39  {
40 // Forward declaration
41  class ParameterValue;
42 
43  /*!
44  \class MapItem
45 
46  \brief
47 
48  \sa te::fe::Expression, ParameterValue, Recode
49  */
51  {
52  public:
53 
54  /** @name Initializer Methods
55  * Methods related to instantiation and destruction.
56  */
57  //@{
58 
59  /*! \brief It initializes a new MapItem. */
60  MapItem();
61 
62  /*! \brief Destructor. */
63  ~MapItem();
64 
65  //@}
66 
67  /*!
68  \brief It returns a clone of this object.
69 
70  \return A clone of this object.
71  */
72  virtual MapItem* clone() const;
73 
74  /*!
75  \brief No copy constructor allowed.
76 
77  \param rhs The other MapItem.
78  */
79  MapItem(const MapItem& rhs);
80 
81  /** @name Accessor methods
82  * Methods used to get or set properties.
83  */
84  //@{
85 
86  double getData() const;
87 
88  void setData(const double& d);
89 
90  ParameterValue* getValue() const;
91 
92  void setValue(ParameterValue* v);
93 
94  std::string getTitle() const;
95 
96  void setTitle(const std::string& title);
97 
98  //@}
99 
100  private:
101 
102  /** @name Not Allowed Methods
103  * No copy allowed.
104  */
105  //@{
106 
107  /*!
108  \brief No assignment operator allowed.
109 
110  \param rhs The other MapItem.
111 
112  \return A reference for this.
113  */
114  MapItem& operator=(const MapItem& rhs);
115 
116  //@}
117 
118  private:
119 
120  double m_data; //!< Mandatory.
121  ParameterValue* m_value; //!< Mandatory.
122  std::string m_title;
123  };
124 
125  } // end namespace se
126 } // end namespace te
127 
128 #endif // __TERRALIB_SE_INTERNAL_MAPITEM_H
double m_data
Mandatory.
Definition: MapItem.h:120
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
URI C++ Library.
This is an abstract class that models a Filter Encoding expression.
Definition: Expression.h:50
ParameterValue * m_value
Mandatory.
Definition: MapItem.h:121
#define TESEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:187
Configuration flags for the Symbology Encoding support of TerraLib.
std::string m_title
Definition: MapItem.h:122