17 #ifndef _SUBSCRIBEOPTIONS_HH_
18 #define _SUBSCRIBEOPTIONS_HH_
20 #include <boost/function.hpp>
21 #include <boost/shared_ptr.hpp>
47 public:
template<
class M>
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;
74 this->msgType =
"raw";
75 this->latching = _latching;
103 return this->latching;
106 private: std::string topic;
107 private: std::string msgType;
109 private:
bool latching;