FakeDeviceWrapped
: A simple device for testing purposes.
More...
#include <fake/fakeDeviceWrapped/FakeDeviceWrapped.h>
Public Member Functions | |
FakeDeviceWrapped ()=default | |
FakeDeviceWrapped (const FakeDeviceWrapped &)=delete | |
FakeDeviceWrapped (FakeDeviceWrapped &&)=delete | |
FakeDeviceWrapped & | operator= (const FakeDeviceWrapped &)=delete |
FakeDeviceWrapped & | operator= (FakeDeviceWrapped &&)=delete |
~FakeDeviceWrapped () override=default | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. | |
bool | close () override |
Close the DeviceDriver. | |
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 | ~IFakeDeviceInterfaceTest2 () |
Protected Attributes | |
int | m_value = { 0 } |
FakeDeviceWrapped
: A simple device for testing purposes.
It is automatically wrapped by FakeDeviceWrapper via deviceBundler device. See also FakeDeviceUnwrapped for an identical device without automatic wrapping.
Definition at line 19 of file FakeDeviceWrapped.h.
|
default |
|
delete |
|
delete |
|
overridedefault |
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 39 of file FakeDeviceWrapped.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 33 of file FakeDeviceWrapped.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 26 of file FakeDeviceWrapped.cpp.
|
overridevirtual |
This method is used to set a single value inside the test device.
Implements yarp::dev::test::IFakeDeviceInterfaceTest2.
Definition at line 19 of file FakeDeviceWrapped.cpp.
|
protected |
Definition at line 24 of file FakeDeviceWrapped.h.