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

© 2007-2011 Witold Gantzke and Kirill Lepskiy