YARP
Yet Another Robot Platform
IWrapper.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_DEV_IWRAPPER_H
11 #define YARP_DEV_IWRAPPER_H
12 
13 #include <yarp/dev/api.h>
14 #include <yarp/dev/PolyDriver.h>
15 
16 namespace yarp {
17 namespace dev {
18 
29 {
30 public:
34  virtual ~IWrapper();
35 
41  virtual bool attach(PolyDriver *poly) = 0;
42 
47  virtual bool detach() = 0;
48 };
49 
50 } // namespace dev
51 } // namespace yarp
52 
53 #endif // YARP_DEV_IWRAPPER_H
yarp::dev::IWrapper::~IWrapper
virtual ~IWrapper()
Destructor.
PolyDriver.h
yarp::dev::IWrapper::detach
virtual bool detach()=0
Detach the object (you must have first called attach).
yarp::dev::PolyDriver
A container for a device driver.
Definition: PolyDriver.h:27
yarp::dev::IWrapper
Interface for an object that can wrap/or "attach" to another.
Definition: IWrapper.h:29
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::dev::IWrapper::attach
virtual bool attach(PolyDriver *poly)=0
Attach to another object.
api.h