Goby v2
Public Member Functions | List of all members
goby::common::PubSubNodeWrapper< NodeTypeBase > Class Template Reference
Inheritance diagram for goby::common::PubSubNodeWrapper< NodeTypeBase >:
Inheritance graph
[legend]

Public Member Functions

 PubSubNodeWrapper (NodeInterface< NodeTypeBase > *node, const protobuf::PubSubSocketConfig &cfg)
 
- Public Member Functions inherited from goby::common::PubSubNodeWrapperBase
 PubSubNodeWrapperBase (ZeroMQService *service, const protobuf::PubSubSocketConfig &cfg)
 
void publish (MarshallingScheme marshalling_scheme, const std::string &identifier, const std::string &body)
 
void subscribe (MarshallingScheme marshalling_scheme, const std::string &identifier)
 
void subscribe_all ()
 
bool using_pubsub () const
 

Publish / Subscribe

void publish (const NodeTypeBase &msg, const std::string &group="")
 Publish a message (of any type derived from google::protobuf::Message) More...
 
void subscribe (const std::string &identifier)
 

Additional Inherited Members

- Public Types inherited from goby::common::PubSubNodeWrapperBase
enum  { SOCKET_SUBSCRIBE = 103998, SOCKET_PUBLISH = 103999 }
 
- Protected Member Functions inherited from goby::common::PubSubNodeWrapperBase
const protobuf::PubSubSocketConfigcfg () const
 

Detailed Description

template<typename NodeTypeBase>
class goby::common::PubSubNodeWrapper< NodeTypeBase >

Definition at line 143 of file pubsub_node_wrapper.h.

Member Function Documentation

template<typename NodeTypeBase>
void goby::common::PubSubNodeWrapper< NodeTypeBase >::publish ( const NodeTypeBase &  msg,
const std::string &  group = "" 
)
inline

Publish a message (of any type derived from google::protobuf::Message)

Parameters
msgMessage to publish

Definition at line 159 of file pubsub_node_wrapper.h.


The documentation for this class was generated from the following file: