17 #ifndef _SUBSCRIBEOPTIONS_HH_
18 #define _SUBSCRIBEOPTIONS_HH_
20 #include <boost/function.hpp>
21 #include <boost/shared_ptr.hpp>
46 public:
template<
class M>
47 void Init(
const std::string &_topic,
51 google::protobuf::Message *msg =
NULL;
53 msg =
dynamic_cast<google::protobuf::Message *
>(&msgtype);
55 gzthrow(
"Subscribe requires a google protobuf type");
59 this->msgType = msg->GetTypeName();
60 this->latching = _latching;
88 return this->latching;
91 private: std::string topic;
92 private: std::string msgType;
94 private:
bool latching;