CEnableableParam.h
Go to the documentation of this file.
1 #ifndef iprm_CEnableableParam_included
2 #define iprm_CEnableableParam_included
3 
4 
5 // ACF includes
7 
8 
9 namespace iprm
10 {
11 
12 
17 {
18 public:
19  CEnableableParam(bool isEnabled = true);
20 
21  // reimplemented (iprm::IEnableableParam)
22  virtual bool IsEnabled() const;
23  virtual bool IsEnablingAllowed() const;
24  virtual bool SetEnabled(bool isEnabled = true);
25 
26  // reimplemented (iser::ISerializable)
27  virtual bool Serialize(iser::IArchive& archive);
28 
29  // reimplemented (istd::IChangeable)
30  virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
31 
32 private:
33  bool m_isEnabled;
34 };
35 
36 
37 } // namespace iprm
38 
39 
40 #endif // iprm_CEnableableParam_included
41 
42 
virtual bool SetEnabled(bool isEnabled=true)
Set something to isEnabled state.
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
External references are simple ignored.
Definition: IChangeable.h:197
CompatibilityMode
Control how relationship betweeen objects are interpreted.
Definition: IChangeable.h:186
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
Basic implementation of IEnableableParam interface.
virtual bool IsEnablingAllowed() const
Return a true, if something can be enabled.
Represent input/output persistence archive.
Definition: IArchive.h:30
Interface for objects which can be enabled/disabled.
CEnableableParam(bool isEnabled=true)
virtual bool IsEnabled() const
Return a true, if something is enabled.

© 2007-2017 Witold Gantzke and Kirill Lepskiy