rad  3.0.0
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_
hello::TopicParsers
Definition: msgParsers.hpp:43
rad::SMAdapter
Definition: smAdapter.hpp:60
hello::TopicParsers::TopicParsers
TopicParsers(const TopicParsers &)=delete
hello::MsgParsers::MsgParsers
MsgParsers(rad::SMAdapter &sm)
Definition: msgParsers.cpp:27
hello::MsgParsers::MsgParsers
MsgParsers(const MsgParsers &)=delete
hello::TopicParsers::TopicParsers
TopicParsers(rad::SMAdapter &sm)
Definition: msgParsers.cpp:110
hello
Definition: actionMgr.cpp:21
hello::MsgParsers::operator=
MsgParsers & operator=(const MsgParsers &)=delete
hello::MsgParsers
Definition: msgParsers.hpp:24
rad::MsgHandler
Definition: msgHandler.hpp:23
hello::MsgParsers::~MsgParsers
virtual ~MsgParsers()
Definition: msgParsers.cpp:35
rad::TopicHandler
Definition: topicHandler.hpp:23
hello::TopicParsers::Handle
void Handle(const std::string &payload_type, void const *msg, size_t sz) override
Definition: msgParsers.cpp:122
hello::TopicParsers::operator=
TopicParsers & operator=(const MsgParsers &)=delete
hello::MsgParsers::Handle
void Handle(const std::string &identity, const std::string &payload_type, void const *msg, size_t sz) override
Definition: msgParsers.cpp:48