IDL-friendly connection writer. More...
#include <yarp/os/idl/WireWriter.h>
Public Member Functions | |
WireWriter (ConnectionWriter &writer) | |
WireWriter (WireReader &reader) | |
~WireWriter () | |
bool | isNull () const |
bool | write (const WirePortable &obj) const |
bool | write (const yarp::os::PortWriter &obj) const |
bool | writeNested (const WirePortable &obj) const |
bool | writeNested (const yarp::os::PortWriter &obj) const |
bool | writeBool (bool x, bool skip_tag=false) const |
bool | writeI8 (std::int8_t x, bool skip_tag=false) const |
bool | writeI16 (std::int16_t x, bool skip_tag=false) const |
bool | writeI32 (std::int32_t x, bool skip_tag=false) const |
bool | writeI64 (std::int64_t x, bool skip_tag=false) const |
bool | writeFloat32 (yarp::conf::float32_t x, bool skip_tag=false) const |
bool | writeFloat64 (yarp::conf::float64_t x, bool skip_tag=false) const |
bool | writeUI8 (std::uint8_t x, bool skip_tag=false) const |
bool | writeUI16 (std::uint16_t x, bool skip_tag=false) const |
bool | writeUI32 (std::uint32_t x, bool skip_tag=false) const |
bool | writeUI64 (std::uint64_t x, bool skip_tag=false) const |
bool | writeVocab32 (yarp::conf::vocab32_t x, bool skip_tag=false) const |
bool | writeVocab32 (char a, char b=0, char c=0, char d=0, bool skip_tag=false) const |
bool | writeVocab32 (const std::string &str, bool skip_tag=false) const |
bool | writeSizeT (std::size_t x, bool skip_tag=false) const |
bool | isValid () const |
bool | isError () const |
bool | writeTag (const char *tag, int split, int len) const |
bool | writeString (const std::string &str, bool skip_tag=false) const |
bool | writeBlock (const char *data, size_t len) const |
bool | writeBinary (const std::string &blob, bool skip_tag=false) const |
bool | writeListHeader (int len) const |
bool | writeListBegin (int tag, size_t len) const |
bool | writeSetBegin (int tag, size_t len) const |
bool | writeMapBegin (int tag, int tag2, size_t len) const |
bool | writeListEnd () const |
bool | writeSetEnd () const |
bool | writeMapEnd () const |
bool | writeOnewayResponse () const |
void | flush () |
IDL-friendly connection writer.
Used by YARP IDL tools, not intended for end-user.
Definition at line 27 of file WireWriter.h.
WireWriter::WireWriter | ( | ConnectionWriter & | writer | ) |
Definition at line 19 of file WireWriter.cpp.
WireWriter::WireWriter | ( | WireReader & | reader | ) |
Definition at line 25 of file WireWriter.cpp.
WireWriter::~WireWriter | ( | ) |
Definition at line 35 of file WireWriter.cpp.
void WireWriter::flush | ( | ) |
Definition at line 299 of file WireWriter.cpp.
bool WireWriter::isError | ( | ) | const |
Definition at line 173 of file WireWriter.cpp.
bool WireWriter::isNull | ( | ) | const |
Definition at line 45 of file WireWriter.cpp.
bool WireWriter::isValid | ( | ) | const |
Definition at line 168 of file WireWriter.cpp.
bool WireWriter::write | ( | const WirePortable & | obj | ) | const |
Definition at line 50 of file WireWriter.cpp.
bool WireWriter::write | ( | const yarp::os::PortWriter & | obj | ) | const |
Definition at line 55 of file WireWriter.cpp.
bool WireWriter::writeBinary | ( | const std::string & | blob, |
bool | skip_tag = false |
||
) | const |
Definition at line 220 of file WireWriter.cpp.
bool WireWriter::writeBlock | ( | const char * | data, |
size_t | len | ||
) | const |
Definition at line 213 of file WireWriter.cpp.
bool WireWriter::writeBool | ( | bool | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 70 of file WireWriter.cpp.
bool WireWriter::writeFloat32 | ( | yarp::conf::float32_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 115 of file WireWriter.cpp.
bool WireWriter::writeFloat64 | ( | yarp::conf::float64_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 124 of file WireWriter.cpp.
bool WireWriter::writeI16 | ( | std::int16_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 88 of file WireWriter.cpp.
bool WireWriter::writeI32 | ( | std::int32_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 97 of file WireWriter.cpp.
bool WireWriter::writeI64 | ( | std::int64_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 106 of file WireWriter.cpp.
bool WireWriter::writeI8 | ( | std::int8_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 79 of file WireWriter.cpp.
bool WireWriter::writeListBegin | ( | int | tag, |
size_t | len | ||
) | const |
Definition at line 251 of file WireWriter.cpp.
bool WireWriter::writeListEnd | ( | ) | const |
Definition at line 274 of file WireWriter.cpp.
bool WireWriter::writeListHeader | ( | int | len | ) | const |
Definition at line 231 of file WireWriter.cpp.
bool WireWriter::writeMapBegin | ( | int | tag, |
int | tag2, | ||
size_t | len | ||
) | const |
Definition at line 264 of file WireWriter.cpp.
bool WireWriter::writeMapEnd | ( | ) | const |
Definition at line 284 of file WireWriter.cpp.
bool WireWriter::writeNested | ( | const WirePortable & | obj | ) | const |
Definition at line 60 of file WireWriter.cpp.
bool WireWriter::writeNested | ( | const yarp::os::PortWriter & | obj | ) | const |
Definition at line 65 of file WireWriter.cpp.
bool WireWriter::writeOnewayResponse | ( | ) | const |
Definition at line 289 of file WireWriter.cpp.
bool WireWriter::writeSetBegin | ( | int | tag, |
size_t | len | ||
) | const |
Definition at line 259 of file WireWriter.cpp.
bool WireWriter::writeSetEnd | ( | ) | const |
Definition at line 279 of file WireWriter.cpp.
bool WireWriter::writeSizeT | ( | std::size_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 162 of file WireWriter.cpp.
bool WireWriter::writeString | ( | const std::string & | str, |
bool | skip_tag = false |
||
) | const |
Definition at line 203 of file WireWriter.cpp.
bool WireWriter::writeTag | ( | const char * | tag, |
int | split, | ||
int | len | ||
) | const |
Definition at line 178 of file WireWriter.cpp.
bool WireWriter::writeUI16 | ( | std::uint16_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 138 of file WireWriter.cpp.
bool WireWriter::writeUI32 | ( | std::uint32_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 143 of file WireWriter.cpp.
bool WireWriter::writeUI64 | ( | std::uint64_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 148 of file WireWriter.cpp.
bool WireWriter::writeUI8 | ( | std::uint8_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 133 of file WireWriter.cpp.
|
inline |
Definition at line 70 of file WireWriter.h.
|
inline |
Definition at line 76 of file WireWriter.h.
bool WireWriter::writeVocab32 | ( | yarp::conf::vocab32_t | x, |
bool | skip_tag = false |
||
) | const |
Definition at line 153 of file WireWriter.cpp.