IEnableableParam.h
Go to the documentation of this file.
1 #ifndef iprm_IEnableableParam_included
2 #define iprm_IEnableableParam_included
3 
4 
5 #include <iser/ISerializable.h>
6 
7 
8 namespace iprm
9 {
10 
11 
16 {
17 public:
21  virtual bool IsEnabled() const = 0;
22 
26  virtual bool IsEnablingAllowed() const = 0;
27 
32  virtual bool SetEnabled(bool isEnabled = true) = 0;
33 };
34 
35 
36 } // namespace iprm
37 
38 
39 #endif // !iprm_IEnableableParam_included
40 
41 
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.
Definition: ISerializable.h:23
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.
Interface for objects which can be enabled/disabled.

© 2007-2017 Witold Gantzke and Kirill Lepskiy