All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EnumDataType.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 EnumDataType.h
22 
23  \brief Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color), etc.
24 
25  \ingroup layout
26 */
27 
28 #ifndef __TERRALIB_LAYOUT_INTERNAL_ENUM_DATATYPE_H
29 #define __TERRALIB_LAYOUT_INTERNAL_ENUM_DATATYPE_H
30 
31 // TerraLib
32 #include "AbstractEnum.h"
33 #include "../Config.h"
34 
35 namespace te
36 {
37  namespace layout
38  {
39  class EnumType;
40 
41  /*!
42  \brief Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color), etc.
43 
44  \ingroup layout
45 
46  \sa te::layout::AbstractEnum
47  */
49  {
50  public:
51 
52  /*!
53  \brief Constructor
54  */
55  EnumDataType();
56 
57  /*!
58  \brief Destructor
59  */
60  virtual ~EnumDataType();
61 
62  /*!
63  \brief Returns value that represents type none belonging to enumeration.
64 
65  \return enum value
66  */
67  virtual EnumType* getDataTypeNone() const;
68 
69  /*!
70  \brief Returns value that represents type integer belonging to enumeration.
71 
72  \return enum value
73  */
74  virtual EnumType* getDataTypeInt() const;
75 
76  /*!
77  \brief Returns value that represents type double belonging to enumeration.
78 
79  \return enum value
80  */
81  virtual EnumType* getDataTypeDouble() const;
82 
83  /*!
84  \brief Returns value that represents type long belonging to enumeration.
85 
86  \return enum value
87  */
88  virtual EnumType* getDataTypeLong() const;
89 
90  /*!
91  \brief Returns value that represents type float belonging to enumeration.
92 
93  \return enum value
94  */
95  virtual EnumType* getDataTypeFloat() const;
96 
97  /*!
98  \brief Returns value that represents type string belonging to enumeration.
99 
100  \return enum value
101  */
102  virtual EnumType* getDataTypeString() const;
103 
104  /*!
105  \brief Returns value that represents type bool belonging to enumeration.
106 
107  \return enum value
108  */
109  virtual EnumType* getDataTypeBool() const;
110 
111  /*!
112  \brief Returns value that represents type te::color::RGBAColor** (color) belonging to enumeration.
113 
114  \return enum value
115  */
116  virtual EnumType* getDataTypeColor() const;
117 
118  /*!
119  \brief Returns value that represents type GridSettings (string) belonging to enumeration.
120 
121  \return enum value
122  */
123  virtual EnumType* getDataTypeGridSettings() const;
124 
125  /*!
126  \brief Returns value that represents type StringList (string) belonging to enumeration.
127 
128  \return enum value
129  */
130  virtual EnumType* getDataTypeStringList() const;
131 
132  /*!
133  \brief Returns value that represents type Font belonging to enumeration.
134 
135  \return enum value
136  */
137  virtual EnumType* getDataTypeFont() const;
138 
139  /*!
140  \brief Returns value that represents type image (string) belonging to enumeration.
141 
142  \return enum value
143  */
144  virtual EnumType* getDataTypeImage() const;
145 
146  /*!
147  \brief Returns value that represents type TextGridSettings (string) belonging to enumeration.
148 
149  \return enum value
150  */
151  virtual EnumType* getDataTypeTextGridSettings() const;
152 
153  /*!
154  \brief Returns value that represents type Group (string) belonging to enumeration.
155 
156  \return enum value
157  */
158  virtual EnumType* getDataTypeGroup() const;
159 
160  protected:
161 
162  /*!
163  \brief Reimplemented from AbstractEnum
164  */
165  virtual void init();
166 
167  protected:
168 
169  EnumType* m_dataTypeNone; //!< value that represents type none belonging to enumeration
170  EnumType* m_dataTypeInt; //!< value that represents type integer belonging to enumeration
171  EnumType* m_dataTypeDouble; //!< value that represents type double belonging to enumeration
172  EnumType* m_dataTypeLong; //!< value that represents type long belonging to enumeration
173  EnumType* m_dataTypeFloat; //!< value that represents type float belonging to enumeration
174  EnumType* m_dataTypeString; //!< value that represents type string belonging to enumeration
175  EnumType* m_dataTypeBool; //!< value that represents type bool belonging to enumeration
176  EnumType* m_dataTypeColor; //!< value that represents type te::color::RGBAColor** (color) belonging to enumeration
177  EnumType* m_dataTypeGridSettings; //!< value that represents type GridSettings (string) belonging to enumeration
178  EnumType* m_dataTypeStringList; //!< value that represents type StringList (string) belonging to enumeration.
179  EnumType* m_dataTypeFont; //!< value that represents type Font belonging to enumeration
180  EnumType* m_dataTypeImage; //!< value that represents type image (string) belonging to enumeration
181  EnumType* m_dataTypeTextGridSettings; //!< value that represents type TextGridSettings (string) belonging to enumeration
182  EnumType* m_dataTypeGroup; //!< value that represents type Group (string) belonging to enumeration
183  };
184  }
185 }
186 
187 #endif
Abstract class to represent an enumeration.
Definition: AbstractEnum.h:48
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:99
EnumType * m_dataTypeNone
value that represents type none belonging to enumeration
Definition: EnumDataType.h:169
EnumType * m_dataTypeBool
value that represents type bool belonging to enumeration
Definition: EnumDataType.h:175
EnumType * m_dataTypeStringList
value that represents type StringList (string) belonging to enumeration.
Definition: EnumDataType.h:178
EnumType * m_dataTypeString
value that represents type string belonging to enumeration
Definition: EnumDataType.h:174
EnumType * m_dataTypeGroup
value that represents type Group (string) belonging to enumeration
Definition: EnumDataType.h:182
EnumType * m_dataTypeDouble
value that represents type double belonging to enumeration
Definition: EnumDataType.h:171
EnumType * m_dataTypeGridSettings
value that represents type GridSettings (string) belonging to enumeration
Definition: EnumDataType.h:177
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color)...
Definition: EnumDataType.h:48
EnumType * m_dataTypeImage
value that represents type image (string) belonging to enumeration
Definition: EnumDataType.h:180
EnumType * m_dataTypeTextGridSettings
value that represents type TextGridSettings (string) belonging to enumeration
Definition: EnumDataType.h:181
EnumType * m_dataTypeLong
value that represents type long belonging to enumeration
Definition: EnumDataType.h:172
EnumType * m_dataTypeInt
value that represents type integer belonging to enumeration
Definition: EnumDataType.h:170
EnumType * m_dataTypeFloat
value that represents type float belonging to enumeration
Definition: EnumDataType.h:173
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
Definition: EnumType.h:48
Abstract class to represent an enumeration.
EnumType * m_dataTypeColor
value that represents type te::color::RGBAColor** (color) belonging to enumeration ...
Definition: EnumDataType.h:176
EnumType * m_dataTypeFont
value that represents type Font belonging to enumeration
Definition: EnumDataType.h:179