YARP
Yet Another Robot Platform
IWrapper.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_IWRAPPER_H
8 #define YARP_DEV_IWRAPPER_H
9 
10 #include <yarp/dev/api.h>
11 #include <yarp/dev/PolyDriver.h>
12 
13 namespace yarp {
14 namespace dev {
15 
26 {
27 public:
31  virtual ~IWrapper();
32 
38  virtual bool attach(PolyDriver* driver) = 0;
39 
44  virtual bool detach() = 0;
45 };
46 
47 } // namespace dev
48 } // namespace yarp
49 
50 #endif // YARP_DEV_IWRAPPER_H
Interface for an object that can wrap/or "attach" to another.
Definition: IWrapper.h:26
virtual bool detach()=0
Detach the object (you must have first called attach).
virtual bool attach(PolyDriver *driver)=0
Attach to another object.
virtual ~IWrapper()
Destructor.
A container for a device driver.
Definition: PolyDriver.h:24
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18