Common interface for devices that act like services (by which we mean they do something for remote users, with minimal interaction with their creator other than initial configuration). More...
#include <yarp/dev/ServiceInterfaces.h>
Public Member Functions | |
virtual | ~IService () |
virtual bool | startService () |
Initiate the service, whatever it is. More... | |
virtual bool | updateService () |
Give the service the chance to run for a while. More... | |
virtual bool | stopService () |
Shut down the service, whatever it is. More... | |
Common interface for devices that act like services (by which we mean they do something for remote users, with minimal interaction with their creator other than initial configuration).
Definition at line 28 of file ServiceInterfaces.h.
|
inlinevirtual |
Definition at line 30 of file ServiceInterfaces.h.
|
inlinevirtual |
Initiate the service, whatever it is.
The service should then run by itself, without any further interaction with its creator until stopService() is called.
Reimplemented in ServerFrameGrabber, DevicePipe, DeviceGroup, and yarp::dev::OVRHeadset.
Definition at line 42 of file ServiceInterfaces.h.
|
inlinevirtual |
Shut down the service, whatever it is.
Reimplemented in ServerFrameGrabber, DevicePipe, DeviceGroup, and yarp::dev::OVRHeadset.
Definition at line 62 of file ServiceInterfaces.h.
|
inlinevirtual |
Give the service the chance to run for a while.
This is an alternative to calling startService(). It is more appropriate in a single-threaded environment.
Reimplemented in ServerFrameGrabber, DevicePipe, DeviceGroup, and yarp::dev::OVRHeadset.
Definition at line 54 of file ServiceInterfaces.h.