YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeDeviceUnwrapped.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_FAKEDEVICEUNWRAPPED_H
7#define YARP_FAKEDEVICEUNWRAPPED_H
8
11#include <yarp/dev/PolyDriver.h>
12
23{
24protected:
25 int m_value = {0};
26
27public:
33
34 ~FakeDeviceUnwrapped() override = default;
35
36 // yarp::dev::DeviceDriver
37 bool open(yarp::os::Searchable& config) override;
38 bool close() override;
39
40 //IFakeDeviceInterfaceTest1
42
43 //IFakeDeviceInterfaceTest2
44 yarp::dev::ReturnValue testSetValue(int value) override;
45 yarp::dev::ReturnValue testGetValue(int& value) override;
46};
47
48#endif
FakeDeviceUnwrapper: A simple device for testing purposes.
FakeDeviceUnwrapped(const FakeDeviceUnwrapped &)=delete
~FakeDeviceUnwrapped() override=default
FakeDeviceUnwrapped()=default
yarp::dev::ReturnValue testGetValue(int &value) override
This method is used to get a single value from a test device.
FakeDeviceUnwrapped & operator=(const FakeDeviceUnwrapped &)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::ReturnValue testSetValue(int value) override
This method is used to set a single value inside the test device.
FakeDeviceUnwrapped & operator=(FakeDeviceUnwrapped &&)=delete
FakeDeviceUnwrapped(FakeDeviceUnwrapped &&)=delete
yarp::dev::ReturnValue doSomething() override
A method for testing purposes.
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
A fake interface for testing,debugging and development purposes.
A test interface used internally by continuous integration.
A base class for nested structures that can be searched.
Definition Searchable.h:31