/* * PubSub.h * * Created on: Apr 23, 2015 * Author: rheijden */ #ifndef INCLUDE_ZEROMQ_PUBLISHINTERFACE_H_ #define INCLUDE_ZEROMQ_PUBLISHINTERFACE_H_ #include #include #include #include class PublishInterface { public: /** * constructor for request reply * @param cfg config for the Request reply socket * @param l pointer to logging interface */ explicit PublishInterface(const std::shared_ptr &cfg); ~PublishInterface(); void send(const std::shared_ptr &msg); void send(const std::string &msg); private: std::mutex __sendLock; /**< RPC message object */ std::shared_ptr __zmqContext; std::shared_ptr __zmqSocket; }; #endif // INCLUDE_ZEROMQ_PUBLISHINTERFACE_H_