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;
 Options for a subscription. 
Definition: SubscribeOptions.hh:35
 
Forward declarations for the common classes. 
Definition: Animation.hh:33
 
std::string GetTopic() const
Get the topic we're subscribed to. 
Definition: SubscribeOptions.hh:87
 
#define gzthrow(msg)
This macro logs an error to the throw stream and throws an exception that contains the file name and ...
Definition: Exception.hh:39
 
void Init(const std::string &_topic, NodePtr _node, bool _latching)
Initialize the options. 
Definition: SubscribeOptions.hh:69
 
std::string GetMsgType() const
Get the type of the topic we're subscribed to. 
Definition: SubscribeOptions.hh:94
 
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
 
SubscribeOptions()
Constructor. 
Definition: SubscribeOptions.hh:38
 
bool GetLatching() const
Are we latching? 
Definition: SubscribeOptions.hh:101
 
#define NULL
Definition: CommonTypes.hh:31
 
void Init(const std::string &_topic, NodePtr _node, bool _latching)
Initialize the options. 
Definition: SubscribeOptions.hh:48
 
NodePtr GetNode() const
Get the node we're subscribed to. 
Definition: SubscribeOptions.hh:80