#include <yarp/wire_rep_utils/WireTwiddler.h>
Public Member Functions | |
WireTwiddlerWriter (yarp::os::SizedWriter &parent, WireTwiddler &twiddler) | |
WireTwiddlerWriter () | |
virtual | ~WireTwiddlerWriter () |
void | attach (yarp::os::SizedWriter &parent, WireTwiddler &twiddler) |
bool | update () |
size_t | length () const override |
size_t | headerLength () const override |
size_t | length (size_t index) const override |
const char * | data (size_t index) const override |
yarp::os::PortReader * | getReplyHandler () override |
yarp::os::Portable * | getReference () override |
bool | skip (const char *start, int len) |
bool | transform (const WireTwiddlerGap &gap) |
bool | pass (int len) |
bool | pad (size_t len) |
bool | readLengthAndPass (int unitLength, const WireTwiddlerGap *gap=nullptr) |
bool | advance (int length, bool shouldEmit, bool shouldAccum=false, bool shouldCheck=false) |
bool | emit (const char *src, int len) |
int | readLength () |
bool | dropRequested () override |
void | startWrite () const override |
Call when writing is about to begin. More... | |
void | stopWrite () const override |
Call when all writing is finished. More... | |
Public Member Functions inherited from yarp::os::SizedWriter | |
virtual | ~SizedWriter () |
virtual void | write (OutputStream &os) |
bool | write (ConnectionWriter &connection) const override |
Write this object to a network connection. More... | |
virtual void | clear () |
Public Member Functions inherited from yarp::os::PortWriter | |
virtual | ~PortWriter () |
Destructor. More... | |
virtual void | onCompletion () const |
This is called when the port has finished all writing operations. More... | |
virtual void | onCommencement () const |
This is called when the port is about to begin writing operations. More... | |
virtual yarp::os::Type | getWriteType () const |
Definition at line 212 of file WireTwiddler.h.
|
inline |
Definition at line 243 of file WireTwiddler.h.
|
inline |
Definition at line 271 of file WireTwiddler.h.
|
virtualdefault |
bool WireTwiddlerWriter::advance | ( | int | length, |
bool | shouldEmit, | ||
bool | shouldAccum = false , |
||
bool | shouldCheck = false |
||
) |
Definition at line 844 of file WireTwiddler.cpp.
|
inline |
Definition at line 298 of file WireTwiddler.h.
|
inlineoverridevirtual |
Implements yarp::os::SizedWriter.
Definition at line 319 of file WireTwiddler.h.
|
inlineoverridevirtual |
Implements yarp::os::SizedWriter.
Definition at line 350 of file WireTwiddler.h.
bool WireTwiddlerWriter::emit | ( | const char * | src, |
int | len | ||
) |
Definition at line 911 of file WireTwiddler.cpp.
|
inlineoverridevirtual |
Implements yarp::os::SizedWriter.
Definition at line 328 of file WireTwiddler.h.
|
inlineoverridevirtual |
Implements yarp::os::SizedWriter.
Definition at line 324 of file WireTwiddler.h.
|
inlineoverridevirtual |
Implements yarp::os::SizedWriter.
Definition at line 311 of file WireTwiddler.h.
|
inlineoverridevirtual |
Implements yarp::os::SizedWriter.
Definition at line 307 of file WireTwiddler.h.
|
inlineoverridevirtual |
Implements yarp::os::SizedWriter.
Definition at line 315 of file WireTwiddler.h.
bool WireTwiddlerWriter::pad | ( | size_t | len | ) |
Definition at line 782 of file WireTwiddler.cpp.
bool WireTwiddlerWriter::pass | ( | int | len | ) |
Definition at line 778 of file WireTwiddler.cpp.
int WireTwiddlerWriter::readLength | ( | ) |
Definition at line 830 of file WireTwiddler.cpp.
bool WireTwiddlerWriter::readLengthAndPass | ( | int | unitLength, |
const WireTwiddlerGap * | gap = nullptr |
||
) |
Definition at line 792 of file WireTwiddler.cpp.
bool WireTwiddlerWriter::skip | ( | const char * | start, |
int | len | ||
) |
Definition at line 773 of file WireTwiddler.cpp.
|
inlineoverridevirtual |
Call when writing is about to begin.
Implements yarp::os::SizedWriter.
Definition at line 354 of file WireTwiddler.h.
|
inlineoverridevirtual |
Call when all writing is finished.
Implements yarp::os::SizedWriter.
Definition at line 358 of file WireTwiddler.h.
bool WireTwiddlerWriter::transform | ( | const WireTwiddlerGap & | gap | ) |
Definition at line 968 of file WireTwiddler.cpp.
bool WireTwiddlerWriter::update | ( | ) |
Definition at line 705 of file WireTwiddler.cpp.