ICF 3.1.1.10
Technical documentation of ICF Libraries
CAttributesMetaInfoProvider.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
10#include <istd/TOptDelPtr.h>
12
13
14namespace iattr
15{
16
17
22{
23public:
35 const QByteArray& attributeId,
36 istd::TOptDelPtr<IAttributeMetaInfo>&& attributeMetaInfoPtr);
40 bool HasAttributeMetaId(const QByteArray& attributeId) const;
41
42 // reimplemented (iattr::IAttributesMetaInfoProvider)
44 virtual const IAttributeMetaInfo* GetAttributeMetaInfo(const QByteArray& attributeId) const;
45
46private:
48 typedef std::map<QByteArray, AttributeMetaInfoPtr> AttributesMetaInfoMap;
49 AttributesMetaInfoMap m_attributesMetaInfoMap;
50};
51
52
53} // namespace iattr
54
55
Common interface for a container of properties.
virtual const IAttributeMetaInfo * GetAttributeMetaInfo(const QByteArray &attributeId) const
Get property with the given index.
virtual void RemoveAllAttributeMetaInfos()
Remove all attribute meta infos.
virtual bool InsertAttributeMetaInfo(const QByteArray &attributeId, istd::TOptDelPtr< IAttributeMetaInfo > &&attributeMetaInfoPtr)
Insert an property into the object.
virtual IAttributesProvider::AttributeIds GetAttributeMetaIds() const
Get all IDs of known attribute meta informations.
bool HasAttributeMetaId(const QByteArray &attributeId) const
Check if this provider has some attribute ID.
Meta information describing single attribute.
Common interface for a container of properties.
Pointer wrapper providing activatable deleting pointed object during destruction.
Definition TOptDelPtr.h:23
This namespace containes implementations of attributes concept.

© Witold Gantzke and Kirill Lepskiy