Seamly2D
Code documentation
vserializedproperty.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file vserializedproperty.h
4  ** @author hedgeware <internal(at)hedgeware.net>
5  ** @date
6  **
7  ** @brief
8  ** @copyright
9  ** All rights reserved. This program and the accompanying materials
10  ** are made available under the terms of the GNU Lesser General Public License
11  ** (LGPL) version 2.1 which accompanies this distribution, and is available at
12  ** http://www.gnu.org/licenses/lgpl-2.1.html
13  **
14  ** This library is distributed in the hope that it will be useful,
15  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  ** Lesser General Public License for more details.
18  **
19  *************************************************************************/
20 
21 #ifndef VSERIALIZEDPROPERTY_H
22 #define VSERIALIZEDPROPERTY_H
23 
24 #include <QList>
25 #include <QString>
26 #include <QVariant>
27 
28 #include "vproperty.h"
29 #include "vpropertyset.h"
30 
31 namespace VPE
32 {
33 
35 {
36 public:
37  //! Constructor
39 
40  //! Constructor
41  VSerializedProperty(const VProperty* property, const VPropertySet* set);
42 
43  //! Constructor
44  VSerializedProperty(const VProperty* property, const QString& id, const VPropertySet* set);
45 
46  //! Constructor
47  VSerializedProperty(const QString& id, const QString& type, const QVariant& value);
48 
49  //! The property type
50  QString ID;
51 
52  //! The property type
53  QString Type;
54 
55  //! The serialized value of the property
56  QVariant Value;
57 
58  //! List of child properties
60 
61 private:
62  void initChildren(const VProperty* property, const VPropertySet* set);
63 };
64 
65 }
66 
67 #endif // VSERIALIZEDPROPERTY_H
VPropertySet is a simple class for managing a set of properties. If you don't need all the Model-func...
Definition: vpropertyset.h:48
QString ID
The property type.
QVariant Value
The serialized value of the property.
QList< VSerializedProperty > Children
List of child properties.
QString Type
The property type.
void initChildren(const VProperty *property, const VPropertySet *set)