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) const |
bool | writeI8 (std::int8_t x) const |
bool | writeI16 (std::int16_t x) const |
bool | writeI32 (std::int32_t x) const |
bool | writeI64 (std::int64_t x) const |
bool | writeFloat32 (yarp::conf::float32_t x) const |
bool | writeFloat64 (yarp::conf::float64_t x) const |
bool | writeUI8 (std::uint8_t x) const |
bool | writeUI16 (std::uint16_t x) const |
bool | writeUI32 (std::uint32_t x) const |
bool | writeUI64 (std::uint64_t x) const |
bool | writeVocab32 (yarp::conf::vocab32_t x) const |
bool | writeVocab32 (char a, char b=0, char c=0, char d=0) const |
bool | writeVocab32 (const std::string &str) const |
bool | writeSizeT (std::size_t x) const |
bool | isValid () const |
bool | isError () const |
bool | writeTag (const char *tag, int split, int len) const |
bool | writeString (const std::string &tag) const |
bool | writeBinary (const std::string &tag) const |
bool | writeListHeader (int len) const |
bool | writeListBegin (int tag, std::uint32_t len) const |
bool | writeSetBegin (int tag, std::uint32_t len) const |
bool | writeMapBegin (int tag, int tag2, std::uint32_t len) const |
bool | writeListEnd () const |
bool | writeSetEnd () const |
bool | writeMapEnd () const |
bool | writeOnewayResponse () const |
bool | writeByte (std::int8_t x) const |
bool | writeDouble (double x) const |
bool | writeVocab (std::int32_t x) const |
IDL-friendly connection writer.
Used by YARP IDL tools, not intended for end-user.
Definition at line 29 of file WireWriter.h.
WireWriter::WireWriter | ( | ConnectionWriter & | writer | ) |
Definition at line 19 of file WireWriter.cpp.
WireWriter::WireWriter | ( | WireReader & | reader | ) |
Definition at line 27 of file WireWriter.cpp.
WireWriter::~WireWriter | ( | ) |
Definition at line 40 of file WireWriter.cpp.
bool WireWriter::isError | ( | ) | const |
Definition at line 159 of file WireWriter.cpp.
bool WireWriter::isNull | ( | ) | const |
Definition at line 47 of file WireWriter.cpp.
bool WireWriter::isValid | ( | ) | const |
Definition at line 154 of file WireWriter.cpp.
bool WireWriter::write | ( | const WirePortable & | obj | ) | const |
Definition at line 52 of file WireWriter.cpp.
bool WireWriter::write | ( | const yarp::os::PortWriter & | obj | ) | const |
Definition at line 57 of file WireWriter.cpp.
bool WireWriter::writeBinary | ( | const std::string & | tag | ) | const |
Definition at line 197 of file WireWriter.cpp.
bool WireWriter::writeBool | ( | bool | x | ) | const |
Definition at line 72 of file WireWriter.cpp.
|
inline |
Definition at line 113 of file WireWriter.h.
|
inline |
Definition at line 119 of file WireWriter.h.
bool WireWriter::writeFloat32 | ( | yarp::conf::float32_t | x | ) | const |
Definition at line 107 of file WireWriter.cpp.
bool WireWriter::writeFloat64 | ( | yarp::conf::float64_t | x | ) | const |
Definition at line 114 of file WireWriter.cpp.
bool WireWriter::writeI16 | ( | std::int16_t | x | ) | const |
Definition at line 86 of file WireWriter.cpp.
bool WireWriter::writeI32 | ( | std::int32_t | x | ) | const |
Definition at line 93 of file WireWriter.cpp.
bool WireWriter::writeI64 | ( | std::int64_t | x | ) | const |
Definition at line 100 of file WireWriter.cpp.
bool WireWriter::writeI8 | ( | std::int8_t | x | ) | const |
Definition at line 79 of file WireWriter.cpp.
bool WireWriter::writeListBegin | ( | int | tag, |
std::uint32_t | len | ||
) | const |
Definition at line 227 of file WireWriter.cpp.
bool WireWriter::writeListEnd | ( | ) | const |
Definition at line 250 of file WireWriter.cpp.
bool WireWriter::writeListHeader | ( | int | len | ) | const |
Definition at line 206 of file WireWriter.cpp.
bool WireWriter::writeMapBegin | ( | int | tag, |
int | tag2, | ||
std::uint32_t | len | ||
) | const |
Definition at line 241 of file WireWriter.cpp.
bool WireWriter::writeMapEnd | ( | ) | const |
Definition at line 260 of file WireWriter.cpp.
bool WireWriter::writeNested | ( | const WirePortable & | obj | ) | const |
Definition at line 62 of file WireWriter.cpp.
bool WireWriter::writeNested | ( | const yarp::os::PortWriter & | obj | ) | const |
Definition at line 67 of file WireWriter.cpp.
bool WireWriter::writeOnewayResponse | ( | ) | const |
Definition at line 265 of file WireWriter.cpp.
bool WireWriter::writeSetBegin | ( | int | tag, |
std::uint32_t | len | ||
) | const |
Definition at line 236 of file WireWriter.cpp.
bool WireWriter::writeSetEnd | ( | ) | const |
Definition at line 255 of file WireWriter.cpp.
bool WireWriter::writeSizeT | ( | std::size_t | x | ) | const |
Definition at line 148 of file WireWriter.cpp.
bool WireWriter::writeString | ( | const std::string & | tag | ) | const |
Definition at line 189 of file WireWriter.cpp.
bool WireWriter::writeTag | ( | const char * | tag, |
int | split, | ||
int | len | ||
) | const |
Definition at line 164 of file WireWriter.cpp.
bool WireWriter::writeUI16 | ( | std::uint16_t | x | ) | const |
Definition at line 126 of file WireWriter.cpp.
bool WireWriter::writeUI32 | ( | std::uint32_t | x | ) | const |
Definition at line 131 of file WireWriter.cpp.
bool WireWriter::writeUI64 | ( | std::uint64_t | x | ) | const |
Definition at line 136 of file WireWriter.cpp.
bool WireWriter::writeUI8 | ( | std::uint8_t | x | ) | const |
Definition at line 121 of file WireWriter.cpp.
|
inline |
Definition at line 127 of file WireWriter.h.
|
inline |
Definition at line 72 of file WireWriter.h.
|
inline |
Definition at line 78 of file WireWriter.h.
bool WireWriter::writeVocab32 | ( | yarp::conf::vocab32_t | x | ) | const |
Definition at line 141 of file WireWriter.cpp.