CAttributeMetaInfo.h
Go to the documentation of this file.
1 #ifndef iattr_CAttributeMetaInfo_included
2 #define iattr_CAttributeMetaInfo_included
3 
4 
5 // ACF includes
6 #include <istd/TOptDelPtr.h>
7 
8 // ACF-Solutions includes
10 
11 
12 namespace iattr
13 {
14 
15 
20 {
21 public:
22  explicit CAttributeMetaInfo(const QByteArray& typeId = "");
23 
24  void SetAttributeTypeId(const QByteArray& typeId);
25  void SetAttributeDescription(const QString& description);
26  void SetAttributeFlags(int attributeFlags);
27  void SetAttributeDefaultValue(const iser::IObject* defaultValuePtr, bool releaseFlag);
28 
29  // reimplemented (iattr::IAttributeMetaInfo)
30  virtual QString GetAttributeDescription() const;
31  virtual const iser::IObject* GetAttributeDefaultValue() const;
32  virtual QByteArray GetAttributeTypeId() const;
33  virtual int GetAttributeFlags() const;
34 
35 private:
36  QString m_description;
37  QByteArray m_attributeTypeId;
38  int m_attributeFlags;
39  istd::TOptDelPtr<const iser::IObject> m_defaultValuePtr;
40 };
41 
42 
43 } // namespace iattr
44 
45 
46 #endif // !iattr_CAttributeMetaInfo_included
47 
48 
void SetAttributeDefaultValue(const iser::IObject *defaultValuePtr, bool releaseFlag)
void SetAttributeFlags(int attributeFlags)
virtual QString GetAttributeDescription() const
Get description of this attribute.
Common interface for factorisable model objects.
Definition: IObject.h:19
virtual int GetAttributeFlags() const
Get flags of this attribute.
void SetAttributeDescription(const QString &description)
virtual const iser::IObject * GetAttributeDefaultValue() const
Get default attribute value.
CAttributeMetaInfo(const QByteArray &typeId="")
virtual QByteArray GetAttributeTypeId() const
Return attribute type ID.
Meta information describing single attribute.
Represents constraints of properties allowing values from enumerated set.
void SetAttributeTypeId(const QByteArray &typeId)

© 2007-2017 Witold Gantzke and Kirill Lepskiy