ICF 3.1.1.10
Technical documentation of ICF Libraries
CEnableableParamComp.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 iprm_CEnableableParamComp_included
7#define iprm_CEnableableParamComp_included
8
9
10// ICF includes
13
14
15namespace iprm
16{
17
18
22{
23public:
25
26 I_BEGIN_COMPONENT(CEnableableParamComp);
27 I_REGISTER_INTERFACE(iprm::IEnableableParam);
28 I_REGISTER_INTERFACE(iser::ISerializable);
29 I_REGISTER_INTERFACE(istd::IChangeable);
30 I_ASSIGN(m_defaultIsEnabledAttrPtr, "DefaultEnabled", "Default value", true, false);
31 I_END_COMPONENT;
32
33protected:
34 // reimplemented (icomp::CComponentBase)
35 void OnComponentCreated() override;
36
37private:
38 I_ATTR(bool, m_defaultIsEnabledAttrPtr);
39};
40
41
42} // namespace iprm
43
44
45#endif // !iprm_CEnableableParamComp_included
46
47
Base class for component implementation.
void OnComponentCreated() override
icomp::CComponentBase BaseClass
Basic implementation of IEnableableParam interface.
Interface for objects which can be enabled/disabled.
Common class for all classes which objects can be archived or restored from archive.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Contains interfaces and implementations of flexible parameter concept.

© Witold Gantzke and Kirill Lepskiy