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 | writeByte (std::int8_t x) const |
bool | writeDouble (double x) const |
bool | writeVocab (std::int32_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 |
IDL-friendly connection writer.
Used by YARP IDL tools, not intended for end-user.
Definition at line 32 of file WireWriter.h.
WireWriter::WireWriter | ( | ConnectionWriter & | writer | ) |
Definition at line 22 of file WireWriter.cpp.
WireWriter::WireWriter | ( | WireReader & | reader | ) |
Definition at line 30 of file WireWriter.cpp.
WireWriter::~WireWriter | ( | ) |
Definition at line 43 of file WireWriter.cpp.
bool WireWriter::isError | ( | ) | const |
Definition at line 136 of file WireWriter.cpp.
bool WireWriter::isNull | ( | ) | const |
Definition at line 50 of file WireWriter.cpp.
bool WireWriter::isValid | ( | ) | const |
Definition at line 131 of file WireWriter.cpp.
bool WireWriter::write | ( | const WirePortable & | obj | ) | const |
Definition at line 55 of file WireWriter.cpp.
bool WireWriter::write | ( | const yarp::os::PortWriter & | obj | ) | const |
Definition at line 60 of file WireWriter.cpp.
bool WireWriter::writeBinary | ( | const std::string & | tag | ) | const |
Definition at line 174 of file WireWriter.cpp.
bool WireWriter::writeBool | ( | bool | x | ) | const |
Definition at line 75 of file WireWriter.cpp.
|
inline |
Definition at line 67 of file WireWriter.h.
|
inline |
Definition at line 73 of file WireWriter.h.
bool WireWriter::writeFloat32 | ( | yarp::conf::float32_t | x | ) | const |
Definition at line 110 of file WireWriter.cpp.
bool WireWriter::writeFloat64 | ( | yarp::conf::float64_t | x | ) | const |
Definition at line 117 of file WireWriter.cpp.
bool WireWriter::writeI16 | ( | std::int16_t | x | ) | const |
Definition at line 89 of file WireWriter.cpp.
bool WireWriter::writeI32 | ( | std::int32_t | x | ) | const |
Definition at line 96 of file WireWriter.cpp.
bool WireWriter::writeI64 | ( | std::int64_t | x | ) | const |
Definition at line 103 of file WireWriter.cpp.
bool WireWriter::writeI8 | ( | std::int8_t | x | ) | const |
Definition at line 82 of file WireWriter.cpp.
bool WireWriter::writeListBegin | ( | int | tag, |
std::uint32_t | len | ||
) | const |
Definition at line 204 of file WireWriter.cpp.
bool WireWriter::writeListEnd | ( | ) | const |
Definition at line 227 of file WireWriter.cpp.
bool WireWriter::writeListHeader | ( | int | len | ) | const |
Definition at line 183 of file WireWriter.cpp.
bool WireWriter::writeMapBegin | ( | int | tag, |
int | tag2, | ||
std::uint32_t | len | ||
) | const |
Definition at line 218 of file WireWriter.cpp.
bool WireWriter::writeMapEnd | ( | ) | const |
Definition at line 237 of file WireWriter.cpp.
bool WireWriter::writeNested | ( | const WirePortable & | obj | ) | const |
Definition at line 65 of file WireWriter.cpp.
bool WireWriter::writeNested | ( | const yarp::os::PortWriter & | obj | ) | const |
Definition at line 70 of file WireWriter.cpp.
bool WireWriter::writeOnewayResponse | ( | ) | const |
Definition at line 242 of file WireWriter.cpp.
bool WireWriter::writeSetBegin | ( | int | tag, |
std::uint32_t | len | ||
) | const |
Definition at line 213 of file WireWriter.cpp.
bool WireWriter::writeSetEnd | ( | ) | const |
Definition at line 232 of file WireWriter.cpp.
bool WireWriter::writeString | ( | const std::string & | tag | ) | const |
Definition at line 166 of file WireWriter.cpp.
bool WireWriter::writeTag | ( | const char * | tag, |
int | split, | ||
int | len | ||
) | const |
Definition at line 141 of file WireWriter.cpp.
bool WireWriter::writeVocab | ( | std::int32_t | x | ) | const |
Definition at line 124 of file WireWriter.cpp.