EvalCaseResult.hpp
Go to the documentation of this file.
1 //
2 // EvalCaseResult.hpp
3 //
4 // A single EvalCaseResult.
5 //
6 
7 
8 #ifndef EVALCASERESULT_HPP
9 #define EVALCASERESULT_HPP
10 
11 #include <ostream>
12 #include <string>
13 #include <vector>
14 #include "../BasicDatatypes.hpp"
15 
16 namespace datatypes
17 {
18 
19 //
20 // The EvalCaseResult class is a container for the current status of the configured EvalCases.
21 // Some scanners (such as the LDMRS) send such a structure with every scan, others (like the LMSxxx)
22 // send them only upon a change in any parameter value, e.g. if a field infringement happens.
23 //
24 // Typically, the reception of this structure is requested as a event.
25 //
26 class EvalCaseResult : public BasicData
27 {
28 public:
29  UINT16 uiVersionNo; // Version number of this structure (EvalCaseResult_t)
30 
31  struct // Header
32  {
33  UINT8 usiNumber; // Evaluation case number
34  UINT32 udiSysCount; // Current system time since power on
35  double dDistScaleFactor; // Scale factor of radial distance
36  double dDistScaleOffset; // Scale offset of radial distance
37  UINT32 uiAngleScaleFactor; // Angle resolution
38  INT32 iAngleScaleOffset; // Start angle of measurement area
39  } CaseHdr;
40 
41  typedef enum
42  {
44  ECR_LOW = 1,
45  ECR_HIGH = 2,
50  } CaseResult;
51 
52  UINT8 m_eCaseResult; // case result
53 
54  // aFieldInfringement is currently not in use. maybe it'll be added later.
55 
56  std::string m_sCaseName; // Name of evaluation case (optional)
57  std::string m_sComment; // Comment (optional)
58 
59  struct // Timestamp
60  {
68  } aTimeBlock;
69 
70 //protected:
71 
72 
73 
74 public:
77 
78  std::string toString() const;
79  const UINT32 getUsedMemory() const;
80 };
81 
82 
83 std::ostream& operator<< (std::ostream& os, const EvalCaseResult& result);
84 
85 
86 } // END namespace datatypes
87 
88 
89 #endif // EVALCASERESULT_HPP
uint16_t UINT16
uint32_t UINT32
std::string toString() const
int32_t INT32
struct datatypes::EvalCaseResult::@0 CaseHdr
struct datatypes::EvalCaseResult::@1 aTimeBlock
const UINT32 getUsedMemory() const
std::ostream & operator<<(std::ostream &os, const EvalCaseResult &result)
uint8_t UINT8


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33