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 SERVER_MSG_PARSERS_HPP_
10 #define SERVER_MSG_PARSERS_HPP_
11 
12 #include <rad/msgHandler.hpp>
13 #include <rad/smAdapter.hpp>
14 #include <rad/topicHandler.hpp>
15 
16 #include <azmq/message.hpp>
17 
18 namespace server {
19 
24 class MsgParsers final : public rad::MsgHandler {
25  public:
26  explicit MsgParsers(rad::SMAdapter& sm);
27  virtual ~MsgParsers();
28 
29  void Handle(const std::string& identity, const std::string& payload_type, void const* msg,
30  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  public:
45  explicit TopicParsers(rad::SMAdapter& sm);
46 
47  void Handle(const std::string& payload_type, void const* topic, size_t sz) override;
48 
49  TopicParsers(const TopicParsers&) = delete;
50  TopicParsers& operator=(const MsgParsers&) = delete;
51 
52  private:
53  rad::SMAdapter& m_sm;
54 };
55 
56 } // namespace server
57 
58 #endif // SERVER_MSG_PARSERS_HPP_
MsgParsers & operator=(const MsgParsers &)=delete
Definition: msgHandler.hpp:23
MsgParsers(rad::SMAdapter &sm)
Definition: msgParsers.cpp:27
def server
Server receiving requests and publishing topics.
Definition: hellorad.py:108
virtual ~MsgParsers()
Definition: msgParsers.cpp:32
void Handle(const std::string &identity, const std::string &payload_type, void const *msg, size_t sz) override
Definition: msgParsers.cpp:43
TopicParsers & operator=(const MsgParsers &)=delete
Definition: smAdapter.hpp:42
void Handle(const std::string &payload_type, void const *topic, size_t sz) override
Definition: msgParsers.cpp:155
TopicParsers(rad::SMAdapter &sm)
Definition: msgParsers.cpp:145
Definition: topicHandler.hpp:23