A dummy two way stream for testing purposes. More...
#include <yarp/os/impl/FakeTwoWayStream.h>
Inheritance diagram for yarp::os::impl::FakeTwoWayStream:Public Member Functions | |
| FakeTwoWayStream (StringInputStream *target=nullptr) | |
| void | setTarget (StringInputStream &target) |
| InputStream & | getInputStream () override |
| Get an InputStream to read from. More... | |
| virtual StringInputStream & | getStringInputStream () |
| OutputStream & | getOutputStream () override |
| Get an OutputStream to write to. More... | |
| const Contact & | getLocalAddress () const override |
| Get the address of the local side of the stream. More... | |
| const Contact & | getRemoteAddress () const override |
| Get the address of the remote side of the stream. More... | |
| void | close () override |
| Terminate the stream. More... | |
| virtual void | apply (const Bytes &b) |
| void | addInputText (const std::string &str) |
| std::string | getOutputText () const |
| std::string | getInputText () const |
| bool | isOk () const override |
| Check if the stream is ok or in an error state. More... | |
| void | reset () override |
| Reset the stream. More... | |
| void | beginPacket () override |
| Mark the beginning of a logical packet. More... | |
| void | endPacket () override |
| Mark the end of a logical packet (see beginPacket). More... | |
Public Member Functions inherited from yarp::os::TwoWayStream | |
| virtual | ~TwoWayStream () |
| Destructor. More... | |
A dummy two way stream for testing purposes.
Definition at line 21 of file FakeTwoWayStream.h.
|
inline |
Definition at line 25 of file FakeTwoWayStream.h.
|
inline |
Definition at line 75 of file FakeTwoWayStream.h.
|
inlinevirtual |
Definition at line 68 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Mark the beginning of a logical packet.
This is a unit that should be treated in an atomic fashion by YARP. If any part is corrupted, the whole should be dropped.
Implements yarp::os::TwoWayStream.
Definition at line 99 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Terminate the stream.
Implements yarp::os::TwoWayStream.
Definition at line 62 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Mark the end of a logical packet (see beginPacket).
Implements yarp::os::TwoWayStream.
Definition at line 103 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Get an InputStream to read from.
Implements yarp::os::TwoWayStream.
Definition at line 37 of file FakeTwoWayStream.h.
|
inline |
Definition at line 85 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Get the address of the local side of the stream.
Implements yarp::os::TwoWayStream.
Definition at line 52 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Get an OutputStream to write to.
Implements yarp::os::TwoWayStream.
Definition at line 47 of file FakeTwoWayStream.h.
|
inline |
Definition at line 80 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Get the address of the remote side of the stream.
Implements yarp::os::TwoWayStream.
Definition at line 57 of file FakeTwoWayStream.h.
|
inlinevirtual |
Definition at line 42 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Check if the stream is ok or in an error state.
Implements yarp::os::TwoWayStream.
Definition at line 90 of file FakeTwoWayStream.h.
|
inlineoverridevirtual |
Reset the stream.
Implements yarp::os::TwoWayStream.
Definition at line 95 of file FakeTwoWayStream.h.
|
inline |
Definition at line 32 of file FakeTwoWayStream.h.