Download Goby v2 - gobysoft

Transcript
17.41
goby::pb::Application Class Reference
172
• virtual ∼Application ()
Publish / Subscribe
• void publish (const google::protobuf::Message &msg, const std::string &group="")
Additional Inherited Members
17.41.1
Detailed Description
Base class provided for users to generate applications that participate in the Goby publish/subscribe architecture.
Definition at line 47 of file application.h.
17.41.2
Constructor & Destructor Documentation
goby::pb::Application::Application ( google::protobuf::Message ∗ cfg = 0 ) [protected]
17.41.2.1
Parameters
cfg
pointer to object derived from google::protobuf::Message that defines the configuration for
this Application. This constructor will use the Description of cfg to read the command line
parameters and configuration file (if given) and use these values to populate cfg. cfg must
be a static member of the subclass or global object since member objects will be constructed
after the Application constructor is called.
Definition at line 40 of file application.cpp.
17.41.3
Member Function Documentation
template<typename ProtoBufMessage > void goby::pb::Application::subscribe ( boost::function< void(const
ProtoBufMessage &)> handler = boost::function<void (const ProtoBufMessage&)>(),
const std::string & group = "" ) [inline], [protected]
17.41.3.1
Subscribe to a message (of any type derived from google::protobuf::Message)
Parameters
handler
Function object to be called as soon as possible upon receipt of a message of this type.
The signature of handler must match: void handler(const ProtoBufMessage& msg). if
handler is omitted, no handler is called and only the newest message buffer is updated
upon message receipt (for calls to newest<ProtoBufMessage>())
Definition at line 73 of file application.h.
template<typename ProtoBufMessage , class C > void goby::pb::Application::subscribe ( void(C::∗)(const
ProtoBufMessage &) mem func, C ∗ obj, const std::string & group = "" ) [inline], [protected]
17.41.3.2
Subscribe for a type using a class member function as the handler.
Parameters
mem_func
obj
Member function (method) of class C with a signature of void C::mem_func(const ProtoBufMessage& msg)
pointer to the object whose member function (mem_func) to call
Definition at line 89 of file application.h.
Generated on Wed Mar 26 2014 01:41:49 for Goby v2 by Doxygen