A dummy connection to test yarp::os::Portable implementations. More...
#include <yarp/os/DummyConnector.h>
A dummy connection to test yarp::os::Portable implementations.
This class provides simple means to test read and write methods of the Portable interface.
Pseudocode for a test should look something like this:
Definition at line 34 of file DummyConnector.h.
Public Member Functions | |
DummyConnector () | |
Default constructor. More... | |
virtual | ~DummyConnector () |
Destructor. More... | |
void | setTextMode (bool textmode) |
Set the textMode of the dummy connection. More... | |
ConnectionWriter & | getCleanWriter () |
Get a clean/empty dummy ConnectionWriter. More... | |
ConnectionWriter & | getWriter () |
Get the dummy ConnectionWriter loaded with whatever was written the ConnectionWriter since it was last reset. More... | |
ConnectionReader & | getReader () |
Get the dummy ConnectionReader loaded with whatever was written the ConnectionWriter since it was last reset. More... | |
void | reset () |
Reset and clear the current ConnectionWriter. More... | |
DummyConnector::DummyConnector | ( | ) |
|
virtual |
Destructor.
Definition at line 91 of file DummyConnector.cpp.
ConnectionWriter & DummyConnector::getCleanWriter | ( | ) |
Get a clean/empty dummy ConnectionWriter.
This will reset the connection each time.
Definition at line 101 of file DummyConnector.cpp.
ConnectionReader & DummyConnector::getReader | ( | ) |
Get the dummy ConnectionReader loaded with whatever was written the ConnectionWriter since it was last reset.
Definition at line 111 of file DummyConnector.cpp.
ConnectionWriter & DummyConnector::getWriter | ( | ) |
Get the dummy ConnectionWriter loaded with whatever was written the ConnectionWriter since it was last reset.
Definition at line 106 of file DummyConnector.cpp.
void DummyConnector::reset | ( | ) |
Reset and clear the current ConnectionWriter.
Definition at line 116 of file DummyConnector.cpp.
void DummyConnector::setTextMode | ( | bool | textmode | ) |
Set the textMode of the dummy connection.
textmode | new textmode value |
Definition at line 96 of file DummyConnector.cpp.