rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
msgParsers.hpp
Go to the documentation of this file.
1 
9 #ifndef HELLO_MSG_PARSERS_HPP_
10 #define HELLO_MSG_PARSERS_HPP_
11 
12 #include <rad/msgHandler.hpp>
13 #include <rad/topicHandler.hpp>
14 #include <rad/smAdapter.hpp>
15 
16 #include <azmq/message.hpp>
17 
18 namespace hello {
19 
24 class MsgParsers final : public rad::MsgHandler {
25 
26 public:
27  explicit MsgParsers(rad::SMAdapter& sm);
28  virtual ~MsgParsers();
29 
30  void Handle(const std::string& identity, const std::string& payload_type, void const* msg, size_t sz) override;
31 
32  MsgParsers(const MsgParsers&) = delete;
33  MsgParsers& operator= (const MsgParsers&) = delete;
34 
35 private:
36  rad::SMAdapter& m_sm;
37 };
38 
43 class TopicParsers final : public rad::TopicHandler {
44 
45 public:
46  explicit TopicParsers(rad::SMAdapter& sm);
47 
48  void Handle(const std::string& payload_type, void const* msg, size_t sz) override;
49 
50  TopicParsers(const TopicParsers&) = delete;
51  TopicParsers& operator= (const MsgParsers&) = delete;
52 
53 private:
54  rad::SMAdapter& m_sm;
55 };
56 
57 } // namespace hello
58 
59 #endif // HELLO_MSG_PARSERS_HPP_
void Handle(const std::string &identity, const std::string &payload_type, void const *msg, size_t sz) override
Definition: msgParsers.cpp:48
MsgParsers(rad::SMAdapter &sm)
Definition: msgParsers.cpp:27
TopicParsers & operator=(const MsgParsers &)=delete
Definition: msgHandler.hpp:23
void Handle(const std::string &payload_type, void const *msg, size_t sz) override
Definition: msgParsers.cpp:122
Definition: smAdapter.hpp:42
virtual ~MsgParsers()
Definition: msgParsers.cpp:35
MsgParsers & operator=(const MsgParsers &)=delete
TopicParsers(rad::SMAdapter &sm)
Definition: msgParsers.cpp:110
Definition: topicHandler.hpp:23