COptionsManagerComp.h
Go to the documentation of this file.
1 #ifndef iprm_COptionsManagerComp_included
2 #define iprm_COptionsManagerComp_included
3 
4 
5 // ACF includes
6 #include <icomp/CComponentBase.h>
7 #include <iprm/COptionsManager.h>
8 
9 
10 namespace iprm
11 {
12 
13 
18  public icomp::CComponentBase,
19  public COptionsManager
20 {
21 public:
23 
24  I_BEGIN_COMPONENT(COptionsManagerComp);
25  I_REGISTER_INTERFACE(iprm::IOptionsList);
26  I_REGISTER_INTERFACE(iser::ISerializable);
27  I_REGISTER_INTERFACE(iprm::IOptionsManager);
28  I_ASSIGN(m_fixedOptionsListCompPtr, "FixedOptionsList", "List of options could not be changed using this manager", false, "FixedOptionsList");
29  I_ASSIGN(m_serializeSelectionAttrPtr, "SerializeSelection", "If enabled, the current parameter set selection will be serialized", true, true);
30  I_END_COMPONENT;
31 
32 protected:
33  // reimplemented (icomp::CComponentBase)
34  virtual void OnComponentCreated();
35  virtual void OnComponentDestroyed();
36 
37 private:
38  I_REF(iprm::IOptionsList, m_fixedOptionsListCompPtr);
39  I_ATTR(bool, m_serializeSelectionAttrPtr);
40 };
41 
42 
43 } // namespace iprm
44 
45 
46 #endif // !iprm_COptionsManagerComp_included
47 
48 
icomp::CComponentBase BaseClass
virtual void OnComponentCreated()
Base class for component implementation.
Constraints of selection from set of possibilities.
Definition: IOptionsList.h:22
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
Common interface for the management of the dynamic selection constraints.
virtual void OnComponentDestroyed()
Implementation of a simple options manager.
Implementation of selection constraints.

© 2007-2017 Witold Gantzke and Kirill Lepskiy