ICF 3.1.1.10
Technical documentation of ICF Libraries
IEnableableParam.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_IEnableableParam_included
7#define iprm_IEnableableParam_included
8
9
10#include <iser/ISerializable.h>
11
12
13namespace iprm
14{
15
16
21{
22public:
23
25 {
26 CF_ENABLED = 0x089347
27 };
28
32 virtual bool IsEnabled() const = 0;
33
37 virtual bool IsEnablingAllowed() const = 0;
38
43 virtual bool SetEnabled(bool isEnabled = true) = 0;
44};
45
46
47} // namespace iprm
48
49
50#endif // !iprm_IEnableableParam_included
51
52
Interface for objects which can be enabled/disabled.
virtual bool IsEnablingAllowed() const =0
Return a true, if something can be enabled.
virtual bool IsEnabled() const =0
Return a true, if something is enabled.
virtual bool SetEnabled(bool isEnabled=true)=0
Set something to isEnabled state.
Common class for all classes which objects can be archived or restored from archive.
Contains interfaces and implementations of flexible parameter concept.

© Witold Gantzke and Kirill Lepskiy