CNumericParamsComp.h
Go to the documentation of this file.
1 #ifndef imeas_CNumericParamsComp_included
2 #define imeas_CNumericParamsComp_included
3 
4 
5 // ACF includes
6 #include <icomp/CComponentBase.h>
7 #include <imod/IModel.h>
9 
10 // ACF-Solutions includes
11 #include <imath/IUnitInfo.h>
14 
15 
16 namespace imeas
17 {
18 
19 
25  public icomp::CComponentBase,
26  public CSimpleNumericValue,
28 {
29 public:
32 
33  I_BEGIN_COMPONENT(CNumericParamsComp);
34  I_REGISTER_INTERFACE(istd::IChangeable);
35  I_REGISTER_INTERFACE(iser::ISerializable);
36  I_REGISTER_INTERFACE(INumericValue);
37  I_ASSIGN_MULTI_0(m_defaultValuesAttrPtr, "Values", "Default values", false);
38  I_ASSIGN(m_constraintsCompPtr, "Constraints", "Constraints object describing possible parameter values", false, "Constraints");
39  I_END_COMPONENT;
40 
41  // reimplemented (imeas::INumericValue)
42  virtual const INumericConstraints* GetNumericConstraints() const;
43 
44 protected:
45  // reimplemented (imeas::INumericValue)
46  virtual void OnUpdate(const istd::IChangeable::ChangeSet& changeSet);
47 
48  // reimplemented (icomp::CComponentBase)
49  virtual void OnComponentCreated();
50  virtual void OnComponentDestroyed();
51 
52 private:
53  I_MULTIATTR(double, m_defaultValuesAttrPtr);
54  I_REF(INumericConstraints, m_constraintsCompPtr);
55 };
56 
57 
58 } // namespace imeas
59 
60 
61 #endif // !imeas_CNumericParamsComp_included
62 
63 
virtual const INumericConstraints * GetNumericConstraints() const
Get parameter constraints describing possible parameter values.
virtual void OnComponentDestroyed()
CSimpleNumericValue BaseClass2
virtual void OnUpdate(const istd::IChangeable::ChangeSet &changeSet)
Describe additional meta information for set of numeric values.
Basic implementation of imeas::INumericValue interface.
virtual void OnComponentCreated()
General parameter set containing list of numeric values.
Definition: INumericValue.h:20
Component implementating imeas::INumericValue interface.
icomp::CComponentBase BaseClass

© 2007-2017 Witold Gantzke and Kirill Lepskiy