CGeneralNumericValue.h
Go to the documentation of this file.
1 #ifndef imeas_CGeneralNumericValue_included
2 #define imeas_CGeneralNumericValue_included
3 
4 
5 // Qt includes
6 #include "QtCore/QMap"
7 
8 // ACF includes
9 #include "imath/CVarVector.h"
10 
11 // ACF-Solutions includes
12 #include "imeas/INumericValue.h"
13 
14 namespace imeas
15 {
16 
17 
19 {
20 public:
22 
23  // reimplemented (imeas::INumericValue)
24  virtual bool IsValueTypeSupported(imeas::INumericValue::ValueTypeId valueTypeId) const;
27  virtual imath::CVarVector GetValues() const;
28  virtual bool SetValues(const imath::CVarVector& values);
29 
30  // reimplemented (iser::ISerializable)
31  virtual bool Serialize(iser::IArchive &archive);
32 
33  // reimplemented (istd::IChangable)
34  virtual bool CopyFrom(const istd::IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
35  virtual istd::IChangeable* CloneMe(CompatibilityMode mode = CM_WITHOUT_REFS) const;
36 
37 private:
38  typedef QMap<imeas::INumericValue::ValueTypeId, imath::CVarVector> SupportMap;
39  SupportMap m_supportMap;
40 };
41 
42 
43 } // namespace imeas
44 
45 
46 #endif // !imeas_CGeneralNumericValue_included
47 
48 
virtual imath::CVarVector GetValues() const
Get list of numeric values.
virtual bool SetValues(const imath::CVarVector &values)
Set list of numeric values.
virtual istd::IChangeable * CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const
virtual bool IsValueTypeSupported(imeas::INumericValue::ValueTypeId valueTypeId) const
Check if the given value type (or value component) is supported.
Describe additional meta information for set of numeric values.
virtual bool Serialize(iser::IArchive &archive)
void SetComponentValue(imeas::INumericValue::ValueTypeId valueTypeId, imath::CVarVector value)
virtual imath::CVarVector GetComponentValue(imeas::INumericValue::ValueTypeId valueTypeId) const
Get access to component value of the given type.
General parameter set containing list of numeric values.
Definition: INumericValue.h:19
virtual const imeas::INumericConstraints * GetNumericConstraints() const
Get parameter constraints describing possible parameter values.
virtual bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
ValueTypeId
Define standard numeric value types.
Definition: INumericValue.h:25

© 2007-2011 Witold Gantzke and Kirill Lepskiy