FakeDeviceUnwrapper
: A simple device for testing purposes.
More...
#include <fake/fakeDeviceUnwrapped/FakeDeviceUnwrapped.h>
Public Member Functions | |
FakeDeviceUnwrapped ()=default | |
FakeDeviceUnwrapped (const FakeDeviceUnwrapped &)=delete | |
FakeDeviceUnwrapped (FakeDeviceUnwrapped &&)=delete | |
FakeDeviceUnwrapped & | operator= (const FakeDeviceUnwrapped &)=delete |
FakeDeviceUnwrapped & | operator= (FakeDeviceUnwrapped &&)=delete |
~FakeDeviceUnwrapped () override=default | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. | |
bool | close () override |
Close the DeviceDriver. | |
yarp::dev::ReturnValue | doSomething () override |
A method for testing purposes. | |
yarp::dev::ReturnValue | testSetValue (int value) override |
This method is used to set a single value inside the test device. | |
yarp::dev::ReturnValue | testGetValue (int &value) override |
This method is used to get a single value from a test device. | |
![]() | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
virtual | ~DeviceDriver () |
virtual std::string | id () const |
Return the id assigned to the PolyDriver. | |
virtual void | setId (const std::string &id) |
Set the id for this device. | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. | |
![]() | |
virtual | ~IFakeDeviceInterfaceTest1 () |
Destructor. | |
![]() | |
virtual | ~IFakeDeviceInterfaceTest2 () |
Protected Attributes | |
int | m_value = {0} |
FakeDeviceUnwrapper
: A simple device for testing purposes.
It is can be wrapped on request by FakeDeviceWrapper via DeviceBundler device.
Definition at line 19 of file FakeDeviceUnwrapped.h.
|
default |
|
delete |
|
delete |
|
overridedefault |
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 45 of file FakeDeviceUnwrapped.cpp.
|
overridevirtual |
A method for testing purposes.
Implements yarp::dev::test::IFakeDeviceInterfaceTest1.
Definition at line 19 of file FakeDeviceUnwrapped.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 39 of file FakeDeviceUnwrapped.cpp.
|
delete |
|
delete |
|
overridevirtual |
This method is used to get a single value from a test device.
Implements yarp::dev::test::IFakeDeviceInterfaceTest2.
Definition at line 32 of file FakeDeviceUnwrapped.cpp.
|
overridevirtual |
This method is used to set a single value inside the test device.
Implements yarp::dev::test::IFakeDeviceInterfaceTest2.
Definition at line 25 of file FakeDeviceUnwrapped.cpp.
|
protected |
Definition at line 25 of file FakeDeviceUnwrapped.h.