ICF 3.1.1.10
Technical documentation of ICF Libraries
CIdProviderCacheComp.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#ifndef iinsp_CIdProviderCacheComp_included
7#define iinsp_CIdProviderCacheComp_included
8
9
10// ICF includes
12#include <iinsp/IIdProvider.h>
13
14
15namespace iinsp
16{
17
18
26 virtual public IIdProvider
27{
28public:
30
31 I_BEGIN_COMPONENT(CIdProviderCacheComp);
32 I_REGISTER_INTERFACE(IIdProvider);
33 I_END_COMPONENT;
34
36
37 // reimplemented (iinsp::IIdProvider)
38 quint32 GetCurrentId() const override;
39
40 // reimplemented (istd::IChangeable)
41 bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS) override;
42
43private:
44 int m_currentId;
45};
46
47
48} // namespace iinsp
49
50
51#endif // !iinsp_CIdProviderCacheComp_included
52
53
Base class for component implementation.
General ID provider returning always stored ID.
quint32 GetCurrentId() const override
Get current ID value.
bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
icomp::CComponentBase BaseClass
Allow access to some ID.
Definition IIdProvider.h:24
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Library containing inspection related classes and components.

© Witold Gantzke and Kirill Lepskiy