40 m_dataTypeGridSettings(0),
41 m_dataTypeStringList(0),
44 m_dataTypeTextGridSettings(0),
54 delete m_dataTypeNone;
64 delete m_dataTypeDouble;
69 delete m_dataTypeLong;
74 delete m_dataTypeFloat;
79 delete m_dataTypeString;
84 delete m_dataTypeBool;
87 if(m_dataTypeGridSettings)
89 delete m_dataTypeGridSettings;
90 m_dataTypeGridSettings = 0;
92 if(m_dataTypeStringList)
94 delete m_dataTypeStringList;
95 m_dataTypeStringList = 0;
99 delete m_dataTypeFont;
104 delete m_dataTypeImage;
107 if(m_dataTypeTextGridSettings)
109 delete m_dataTypeTextGridSettings;
110 m_dataTypeTextGridSettings = 0;
114 delete m_dataTypeGroup;
121 m_dataTypeNone =
new EnumType(0,
"None",
this);
122 m_enums.push_back(m_dataTypeNone);
124 m_dataTypeInt =
new EnumType(1,
"Int",
this);
125 m_enums.push_back(m_dataTypeInt);
127 m_dataTypeDouble =
new EnumType(2,
"Double",
this);
128 m_enums.push_back(m_dataTypeDouble);
130 m_dataTypeLong =
new EnumType(3,
"Long",
this);
131 m_enums.push_back(m_dataTypeLong);
133 m_dataTypeFloat =
new EnumType(4,
"Float",
this);
134 m_enums.push_back(m_dataTypeFloat);
136 m_dataTypeString =
new EnumType(5,
"String",
this);
137 m_enums.push_back(m_dataTypeString);
139 m_dataTypeBool =
new EnumType(6,
"Bool",
this);
140 m_enums.push_back(m_dataTypeBool);
142 m_dataTypeColor =
new EnumType(7,
"Color",
this);
143 m_enums.push_back(m_dataTypeColor);
145 m_dataTypeGridSettings =
new EnumType(8,
"GridSettings",
this);
146 m_enums.push_back(m_dataTypeGridSettings);
148 m_dataTypeStringList =
new EnumType(9,
"StringList",
this);
149 m_enums.push_back(m_dataTypeStringList);
151 m_dataTypeFont =
new EnumType(10,
"Font",
this);
152 m_enums.push_back(m_dataTypeFont);
154 m_dataTypeImage =
new EnumType(11,
"Image",
this);
155 m_enums.push_back(m_dataTypeImage);
157 m_dataTypeTextGridSettings =
new EnumType(12,
"TextGridSettings",
this);
158 m_enums.push_back(m_dataTypeTextGridSettings);
160 m_dataTypeGroup =
new EnumType(13,
"Group",
this);
161 m_enums.push_back(m_dataTypeGroup);
166 return m_dataTypeNone;
171 return m_dataTypeInt;
176 return m_dataTypeDouble;
181 return m_dataTypeLong;
186 return m_dataTypeFloat;
191 return m_dataTypeString;
196 return m_dataTypeBool;
201 return m_dataTypeColor;
206 return m_dataTypeGridSettings;
211 return m_dataTypeStringList;
216 return m_dataTypeFont;
221 return m_dataTypeImage;
226 return m_dataTypeTextGridSettings;
231 return m_dataTypeGroup;
virtual EnumType * getDataTypeBool() const
Returns value that represents type bool belonging to enumeration.
EnumDataType()
Constructor.
virtual EnumType * getDataTypeDouble() const
Returns value that represents type double belonging to enumeration.
virtual EnumType * getDataTypeInt() const
Returns value that represents type integer belonging to enumeration.
virtual EnumType * getDataTypeNone() const
Returns value that represents type none belonging to enumeration.
virtual EnumType * getDataTypeGroup() const
Returns value that represents type Group (string) belonging to enumeration.
virtual void init()
Reimplemented from AbstractEnum.
virtual EnumType * getDataTypeGridSettings() const
Returns value that represents type GridSettings (string) belonging to enumeration.
virtual EnumType * getDataTypeFloat() const
Returns value that represents type float belonging to enumeration.
virtual EnumType * getDataTypeColor() const
Returns value that represents type te::color::RGBAColor** (color) belonging to enumeration.
virtual EnumType * getDataTypeTextGridSettings() const
Returns value that represents type TextGridSettings (string) belonging to enumeration.
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color)...
virtual EnumType * getDataTypeLong() const
Returns value that represents type long belonging to enumeration.
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
virtual EnumType * getDataTypeFont() const
Returns value that represents type Font belonging to enumeration.
virtual EnumType * getDataTypeStringList() const
Returns value that represents type StringList (string) belonging to enumeration.
virtual EnumType * getDataTypeString() const
Returns value that represents type string belonging to enumeration.
virtual EnumType * getDataTypeImage() const
Returns value that represents type image (string) belonging to enumeration.
virtual ~EnumDataType()
Destructor.