17 #ifndef _SUBSCRIBEOPTIONS_HH_
18 #define _SUBSCRIBEOPTIONS_HH_
20 #include <boost/function.hpp>
21 #include <boost/shared_ptr.hpp>
46 public:
template<
class M>
50 google::protobuf::Message *msg =
NULL;
52 msg =
dynamic_cast<google::protobuf::Message *
>(&msgtype);
54 gzthrow(
"Subscribe requires a google protobuf type");
58 this->msgType = msg->GetTypeName();
59 this->latching = _latching;
73 this->msgType =
"raw";
74 this->latching = _latching;
102 return this->latching;
105 private: std::string topic;
106 private: std::string msgType;
108 private:
bool latching;