CIdProviderCacheComp.h
Go to the documentation of this file.
1 #ifndef iinsp_CIdProviderCacheComp_included
2 #define iinsp_CIdProviderCacheComp_included
3 
4 
5 // ACF includes
6 #include "icomp/CComponentBase.h"
7 
8 // ACF-Solutions includes
9 #include "iinsp/IIdProvider.h"
10 
11 
12 namespace iinsp
13 {
14 
15 
22  public icomp::CComponentBase,
23  virtual public IIdProvider
24 {
25 public:
27 
28  I_BEGIN_COMPONENT(CIdProviderCacheComp);
29  I_REGISTER_INTERFACE(IIdProvider);
30  I_END_COMPONENT;
31 
33 
34  // reimplemented (iinsp::IIdProvider)
35  virtual quint32 GetCurrentId() const;
36 
37  // reimplemented (istd::IChangeable)
38  virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
39 
40 private:
41  int m_currentId;
42 };
43 
44 
45 } // namespace iinsp
46 
47 
48 #endif // !iinsp_CIdProviderCacheComp_included
49 
50 
icomp::CComponentBase BaseClass
virtual quint32 GetCurrentId() const
Get current ID value.
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
Allow access to some ID.
Definition: IIdProvider.h:18
General ID provider returning always stored ID.

© 2007-2011 Witold Gantzke and Kirill Lepskiy