Robot Raconteur Core C++ Library
Loading...
Searching...
No Matches
RobotRaconteur::IRRServiceObject Class Referenceabstract

Interface for service objects to receive service notifications. More...

#include <Service.h>

Public Member Functions

virtual void RRServiceObjectInit (RR_WEAK_PTR< ServerContext > context, const std::string &service_path)=0
 Function called after service object has been initialized.

Detailed Description

Interface for service objects to receive service notifications.

Service objects are passed to the service, either when the service is registered or using objrefs. The service initialized the object by configuring events, pipes, callbacks, and wires for use. The object may implement IRRServiceObject to receive notification of when this process is complete, and to receive a ServerContextPtr and the service path of the object. IRRServiceObject::RRServiceObjectInit() is called after the object has been initialized to provide this information.

Member Function Documentation

◆ RRServiceObjectInit()

virtual void RobotRaconteur::IRRServiceObject::RRServiceObjectInit ( RR_WEAK_PTR< ServerContext > context,
const std::string & service_path )
pure virtual

Function called after service object has been initialized.

Override in the service object to receive notification the service object has been initialized, a ServerContextPtr, and the service path.

Parameters
contextThe ServerContextPtr owning the object
service_pathThe object service path

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