YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
13namespace yarp::dev {
14
25{
26public:
30 virtual ~IWrapper();
31
37 virtual bool attach(PolyDriver* driver) = 0;
38
43 virtual bool detach() = 0;
44};
45
46} // namespace yarp::dev
47
48#endif // YARP_DEV_IWRAPPER_H
Interface for an object that can wrap/or "attach" to another.
Definition IWrapper.h:25
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:23
For streams capable of holding different kinds of content, check what they actually have.
#define YARP_dev_API
Definition api.h:18