IAttributeMetaInfo.h
Go to the documentation of this file.
1 #ifndef iattr_IAttributeMetaInfo_included
2 #define iattr_IAttributeMetaInfo_included
3 
4 
5 // ACF includes
6 #include <iser/IObject.h>
7 
8 
9 namespace iattr
10 {
11 
12 
17 {
18 public:
23  {
27  AF_OBLIGATORY = 1 << 0,
32  AF_NULLABLE = 1 << 1,
36  AF_SINGLE = 1 << 2,
40  AF_MULTIPLE = 1 << 3,
44  AF_VALUE = 1 << 4,
48  AF_READ_ONLY = 1 << 31
49  };
50 
54  virtual QString GetAttributeDescription() const = 0;
55 
60  virtual const iser::IObject* GetAttributeDefaultValue() const = 0;
61 
67  virtual QByteArray GetAttributeTypeId() const = 0;
68 
72  virtual int GetAttributeFlags() const = 0;
73 };
74 
75 
76 } // namespace iattr
77 
78 
79 #endif // !iattr_IAttributeMetaInfo_included
80 
81 
Attribute is simple value type.
virtual const iser::IObject * GetAttributeDefaultValue() const =0
Get default attribute value.
virtual int GetAttributeFlags() const =0
Get flags of this attribute.
Common interface for factorisable model objects.
Definition: IObject.h:19
Active if user declared this attribute as obligatory.
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual QByteArray GetAttributeTypeId() const =0
Return attribute type ID.
virtual QString GetAttributeDescription() const =0
Get description of this attribute.
Attribute is simple value type.
Active if this attribute can be unset (null).
Meta information describing single attribute.
AttributeFlags
Flags signalizing set of attribute properties.

© 2007-2017 Witold Gantzke and Kirill Lepskiy