YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
DeviceBundler.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024-2024 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEVICEBUNDLER_H
7#define YARP_DEVICEBUNDLER_H
8
10#include <yarp/dev/PolyDriver.h>
11#include <yarp/dev/IWrapper.h>
13
29{
30public:
32 DeviceBundler(const DeviceBundler&) = delete;
36
37 ~DeviceBundler() override;
38
39 bool open(yarp::os::Searchable& config) override;
40 bool close() override;
41
42private:
43 yarp::dev::PolyDriver m_pdev_wrapper;
44 yarp::dev::PolyDriver m_pdev_subdevice;
45 yarp::dev::IWrapper* m_iWrapper=nullptr;
46};
47
48#endif // YARP_DEVICEBUNDLER_H
This class is the parameters parser for class DeviceBundler.
DeviceBundler: A device capable of opening two additional devices, specified by the user,...
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool close() override
Close the DeviceDriver.
~DeviceBundler() override
DeviceBundler & operator=(const DeviceBundler &)=delete
DeviceBundler & operator=(DeviceBundler &&)=delete
DeviceBundler(DeviceBundler &&)=delete
DeviceBundler(const DeviceBundler &)=delete
Interface implemented by all device drivers.
Interface for an object that can wrap/or "attach" to another.
Definition IWrapper.h:25
A container for a device driver.
Definition PolyDriver.h:23
A base class for nested structures that can be searched.
Definition Searchable.h:31