ACF $AcfVersion:0$
COptionsManagerComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
8
9
10namespace iprm
11{
12
13
19 public COptionsManager
20{
21public:
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
32protected:
33 // reimplemented (icomp::CComponentBase)
34 virtual void OnComponentCreated() override;
35 virtual void OnComponentDestroyed() override;
36
37private:
38 I_REF(iprm::IOptionsList, m_fixedOptionsListCompPtr);
39 I_ATTR(bool, m_serializeSelectionAttrPtr);
40};
41
42
43} // namespace iprm
44
45
46
47
Base class for component implementation.
Implementation of selection constraints.
icomp::CComponentBase BaseClass
virtual void OnComponentDestroyed() override
virtual void OnComponentCreated() override
Implementation of a simple options manager.
Constraints of selection from set of possibilities.
Common interface for the management of dynamic selection constraints.
Common class for all classes which objects can be archived or restored from archive.
Contains interfaces and implementations of flexible parameter concept.