YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ServiceInterfaces.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_DEV_SERVICEINTERFACES_H
8#define YARP_DEV_SERVICEINTERFACES_H
9
10#include <yarp/dev/api.h>
11
12namespace yarp::dev {
13class IService;
14}
15
24public:
25 virtual ~IService() {}
26
37 virtual bool startService() {
38 return false;
39 }
40
49 virtual bool updateService() {
50 return false;
51 }
52
57 virtual bool stopService() {
58 return false;
59 }
60};
61
62#endif // YARP_DEV_SERVICEINTERFACES_H
Common interface for devices that act like services (by which we mean they do something for remote us...
virtual bool startService()
Initiate the service, whatever it is.
virtual bool stopService()
Shut down the service, whatever it is.
virtual bool updateService()
Give the service the chance to run for a while.
For streams capable of holding different kinds of content, check what they actually have.
Definition jointData.cpp:13
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18