INFM HIL Interface
Interface between Artery simulation and DuTs
Message.h
1
14#ifndef Message_H_
15#define Message_H_
16
17
18#include <string>
19#include <memory>
20#include <boost/property_tree/ptree.hpp>
21
22namespace dummy_dut::rest::model {
23
27 class Message {
28 public:
29 Message();
30
31 virtual ~Message();
32
33 std::string toJsonString(bool prettyJson = false);
34
35 void fromJsonString(std::string const &jsonString);
36
37 boost::property_tree::ptree toPropertyTree();
38
39 void fromPropertyTree(boost::property_tree::ptree const &pt);
40
43
47 std::string getKey() const;
48
49 void setKey(std::string value);
50
54 std::string getStatus() const;
55
56 void setStatus(std::string value);
57
58 protected:
59 std::string m_Key;
60 std::string m_Status;
61 };
62
63}
64
65#endif /* Message_H_ */
Message to send to the dummy DuT
Definition: Message.h:27
std::string getKey() const
Message members.
Definition: Message.cpp:64
std::string getStatus() const
Definition: Message.cpp:72
Definition: Message.cpp:27