healthTypes.h
Go to the documentation of this file.
1 
4 
8 #pragma once
9 
10 #include <string>
11 #include <vector>
12 #include <fstream>
13 #include <boost/system/error_code.hpp>
14 #include "enum.h"
15 #include "../../../../LIBRARIES/UTILS/src/dpyError.h"
16 
17 namespace dpyHealth {
18 
20 enum Priority {
21  NA = 0,
22  LOW = 1,
23  NORMAL = 2,
24  HIGH = 3
25 };
26 
28 struct Status
29 {
30  std::string key = "";
31  std::string value = "";
32  std::string timestamp = "";
33 
34 
35  Status();
36  Status(std::string k,std::string v,std::string t );
37 
38  std::string toString() const;
39  friend std::ostream& operator<<(std::ostream& os, const Status& s);
40  friend std::istream& operator>>(std::istream& is, Status& s);
41  void strip();
42 
43 };
44 
47 {
48  std::string parentId = "";
49  std::string serialNumber = "";
50  std::string fwversion = "";
51  std::string others = "";
52 };
53 
54 }
Device information.
Definition: healthTypes.h:46
Priority
Priority of the message.
Definition: healthTypes.h:20
Status type.
Definition: healthTypes.h:28
Low.
Definition: healthTypes.h:22
Normal.
Definition: healthTypes.h:23
std::string value
The value.
Definition: healthTypes.h:31
Not Available.
Definition: healthTypes.h:21
Deepsy HEALTH namespace that includes the different enums, structs or method signatures that should b...
Definition: healthTypes.h:17
std::string timestamp
When the data was obtained.
Definition: healthTypes.h:32
std::string key
The value identifier.
Definition: healthTypes.h:30
High.
Definition: healthTypes.h:24