CMeasurementRange.h
Go to the documentation of this file.
1 #ifndef imeas_CMeasurementRange_included
2 #define imeas_CMeasurementRange_included
3 
4 
5 #include "imeas/imeas.h"
6 
7 // ACF includes
8 #include "istd/TRange.h"
9 
10 
11 namespace imeas
12 {
13 
14 
19 {
20 public:
22 
23  bool IsValid() const;
24 
25  void SetLowerErrorLimit(double lowerErrorLimit);
26  void SetUpperErrorLimit(double upperErrorLimit);
27  void SetLowerWarningLimit(double lowerWarningLimit);
28  void SetUpperWarningLimit(double upperWarningLimit);
29 
30  double GetLowerErrorLimit() const;
31  double GetUpperErrorLimit() const;
32  double GetLowerWarningLimit() const;
33  double GetUpperWarningLimit() const;
34 
35  bool IsOk(double value) const;
36  bool IsWarning(double value) const;
37  bool IsError(double value) const;
38 
39  bool operator == (const CMeasurementRange& otherRange) const;
40  bool operator != (const CMeasurementRange& otherRange) const;
41 
42 private:
43  istd::CRange m_warningRange;
44  istd::CRange m_errorRange;
45 };
46 
47 
48 } // namespace imeas
49 
50 
51 #endif // !imeas_CMeasurementRange_included
double GetUpperWarningLimit() const
double GetUpperErrorLimit() const
bool IsError(double value) const
void SetUpperErrorLimit(double upperErrorLimit)
double GetLowerWarningLimit() const
double GetLowerErrorLimit() const
bool IsWarning(double value) const
Implementation of a measurement range.
void SetLowerWarningLimit(double lowerWarningLimit)
bool operator!=(const CMeasurementRange &otherRange) const
bool IsOk(double value) const
void SetLowerErrorLimit(double lowerErrorLimit)
void SetUpperWarningLimit(double upperWarningLimit)
bool operator==(const CMeasurementRange &otherRange) const

© 2007-2011 Witold Gantzke and Kirill Lepskiy