#include <yarp/wire_rep_utils/WireTwiddler.h>
Inheritance diagram for yarp::wire_rep_utils::WireTwiddlerReader:Public Member Functions | |
| WireTwiddlerReader (yarp::os::InputStream &is, WireTwiddler &twiddler) | |
| void | reset () |
| virtual | ~WireTwiddlerReader () |
| yarp::conf::ssize_t | read (yarp::os::Bytes &b) override |
| Read a block of data from the stream. More... | |
| void | close () override |
| Terminate the stream. More... | |
| bool | isOk () const override |
| Check if the stream is ok or in an error state. More... | |
| yarp::conf::ssize_t | readMapped (yarp::os::InputStream &is, yarp::os::Bytes &b, const WireTwiddlerGap &gap) |
| void | compute (const WireTwiddlerGap &gap) |
Public Member Functions inherited from yarp::os::InputStream | |
| InputStream () | |
| Constructor. More... | |
| virtual | ~InputStream () |
| Destructor. More... | |
| virtual void | check () |
| Perform maintenance actions, if needed. More... | |
| virtual int | read () |
| Read and return a single byte. More... | |
| virtual yarp::conf::ssize_t | read (Bytes &b, size_t offset, yarp::conf::ssize_t len) |
| Read a block of data from the stream. More... | |
| virtual yarp::conf::ssize_t | partialRead (yarp::os::Bytes &b) |
| Like read, but solicit partial responses. More... | |
| virtual void | interrupt () |
| Interrupt the stream. More... | |
| virtual bool | setReadTimeout (double timeout) |
| Set activity timeout. More... | |
| std::string | readLine (const char terminal='\n', bool *success=nullptr) |
| Read a block of text terminated with a specific marker (or EOF). More... | |
| yarp::conf::ssize_t | readFull (Bytes &b) |
| Keep reading until buffer is full. More... | |
| yarp::conf::ssize_t | readDiscard (size_t len) |
| Read and discard a fixed number of bytes. More... | |
| virtual bool | setReadEnvelopeCallback (readEnvelopeCallbackType callback, void *data) |
| Install a callback that the InputStream will have to call when the envelope is read from a message in carriers that cannot be escaped. More... | |
Additional Inherited Members | |
Public Types inherited from yarp::os::InputStream | |
| typedef void(* | readEnvelopeCallbackType) (void *, const yarp::os::Bytes &envelope) |
| Callback type for setting the envelope from a message in carriers that cannot be escaped. More... | |
Definition at line 141 of file WireTwiddler.h.
|
inline |
Definition at line 161 of file WireTwiddler.h.
|
inlinevirtual |
Definition at line 181 of file WireTwiddler.h.
|
inlineoverridevirtual |
Terminate the stream.
Implements yarp::os::InputStream.
Definition at line 186 of file WireTwiddler.h.
| void WireTwiddlerReader::compute | ( | const WireTwiddlerGap & | gap | ) |
Definition at line 425 of file WireTwiddler.cpp.
|
inlineoverridevirtual |
Check if the stream is ok or in an error state.
Implements yarp::os::InputStream.
Definition at line 188 of file WireTwiddler.h.
|
overridevirtual |
Read a block of data from the stream.
Should block and wait for data.
| b[out] | the block of data to read to |
Implements yarp::os::InputStream.
Definition at line 506 of file WireTwiddler.cpp.
| yarp::conf::ssize_t WireTwiddlerReader::readMapped | ( | yarp::os::InputStream & | is, |
| yarp::os::Bytes & | b, | ||
| const WireTwiddlerGap & | gap | ||
| ) |
Definition at line 986 of file WireTwiddler.cpp.
|
inline |
Definition at line 167 of file WireTwiddler.h.