17 #ifndef SUBSCRIBEOPTIONS_HH
18 #define SUBSCRIBEOPTIONS_HH
20 #include <boost/function.hpp>
21 #include <boost/shared_ptr.hpp>
39 public:
template<
class M>
40 void Init(
const std::string &_topic,
44 google::protobuf::Message *msg =
NULL;
46 msg =
dynamic_cast<google::protobuf::Message *
>(&msgtype);
48 gzthrow(
"Subscribe requires a google protobuf type");
52 this->msgType = msg->GetTypeName();
53 this->latching = _latching;
73 return this->latching;
76 private: std::string topic;
77 private: std::string msgType;
79 private:
bool latching;