ICF 3.1.1.10
Technical documentation of ICF Libraries
CNumericParamsComp.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 imeas_CNumericParamsComp_included
7#define imeas_CNumericParamsComp_included
8
9
10// ICF includes
12#include <imod/IModel.h>
14#include <imath/IUnitInfo.h>
17
18
19namespace imeas
20{
21
22
31{
32public:
35
36 I_BEGIN_COMPONENT(CNumericParamsComp);
37 I_REGISTER_INTERFACE(istd::IChangeable);
38 I_REGISTER_INTERFACE(iser::ISerializable);
39 I_REGISTER_INTERFACE(INumericValue);
40 I_ASSIGN_MULTI_0(m_defaultValuesAttrPtr, "Values", "Default values", false);
41 I_ASSIGN(m_constraintsCompPtr, "Constraints", "Constraints object describing possible parameter values", false, "Constraints");
42 I_ASSIGN_TO(m_constraintsModelCompPtr, m_constraintsCompPtr, false);
43 I_END_COMPONENT;
44
45 // reimplemented (imeas::INumericValue)
47
48protected:
49 // reimplemented (imod::CSingleModelObserverBase)
50 void OnUpdate(const istd::IChangeable::ChangeSet& changeSet) override;
51
52 // reimplemented (icomp::CComponentBase)
53 void OnComponentCreated() override;
54 void OnComponentDestroyed() override;
55
56private:
57 I_MULTIATTR(double, m_defaultValuesAttrPtr);
58 I_REF(INumericConstraints, m_constraintsCompPtr);
59 I_REF(imod::IModel, m_constraintsModelCompPtr);
60};
61
62
63} // namespace imeas
64
65
66#endif // !imeas_CNumericParamsComp_included
67
68
Base class for component implementation.
Component implementating imeas::INumericValue interface.
CGeneralNumericValue BaseClass2
icomp::CComponentBase BaseClass
const INumericConstraints & GetNumericConstraints() const override
Get parameter constraints describing possible parameter values.
void OnUpdate(const istd::IChangeable::ChangeSet &changeSet) override
Called on update of observed model.
void OnComponentDestroyed() override
void OnComponentCreated() override
Describe additional meta information for set of numeric values.
General parameter set containing list of numeric values.
Basic implementation for a single model observer.
Common interface for model objects, that supports Model/Observer design pattern.
Definition IModel.h:29
Common class for all classes which objects can be archived or restored from archive.
Set of change flags (its IDs).
Definition IChangeable.h:38
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
This namespace contains classes for measurement system implementations.

© Witold Gantzke and Kirill Lepskiy