CAttributesMetaInfoProvider.h
Go to the documentation of this file.
1 #ifndef iattr_CAttributesMetaInfoProvider_included
2 #define iattr_CAttributesMetaInfoProvider_included
3 
4 
5 // Qt includes
6 #include <QtCore/QMap>
7 
8 // ACF includes
9 #include <istd/TOptDelPtr.h>
11 
12 
13 namespace iattr
14 {
15 
16 
21 {
22 public:
26  virtual void RemoveAllAttributeMetaInfos();
34  virtual bool InsertAttributeMetaInfo(
35  const QByteArray& attributeId,
36  IAttributeMetaInfo* attributeMetaInfoPtr,
37  bool releaseFlag);
41  bool HasAttributeMetaId(const QByteArray& attributeId) const;
42 
43  // reimplemented (iattr::IAttributesMetaInfoProvider)
45  virtual const IAttributeMetaInfo* GetAttributeMetaInfo(const QByteArray& attributeId) const;
46 
47 private:
49  typedef QMap<QByteArray, AttributeMetaInfoPtr> AttributesMetaInfoMap;
50  AttributesMetaInfoMap m_attributesMetaInfoMap;
51 };
52 
53 
54 } // namespace iattr
55 
56 
57 #endif // !iattr_CAttributesMetaInfoProvider_included
58 
59 
virtual bool InsertAttributeMetaInfo(const QByteArray &attributeId, IAttributeMetaInfo *attributeMetaInfoPtr, bool releaseFlag)
Insert an property into the object.
Common interface for a container of properties.
bool HasAttributeMetaId(const QByteArray &attributeId) const
Check if this provider has some attribute ID.
virtual const IAttributeMetaInfo * GetAttributeMetaInfo(const QByteArray &attributeId) const
Get property with the given index.
Pointer wrapper providing activatable deleting pointed object during destruction. ...
Definition: TOptDelPtr.h:20
Common interface for a container of properties.
QSet< QByteArray > AttributeIds
virtual void RemoveAllAttributeMetaInfos()
Remove all attribute meta infos.
virtual IAttributesProvider::AttributeIds GetAttributeMetaIds() const
Get all IDs of known attribute meta informations.
Meta information describing single attribute.

© 2007-2017 Witold Gantzke and Kirill Lepskiy