IDL-friendly connection reader. More...
#include <yarp/os/idl/WireReader.h>
Public Member Functions | |
WireReader (ConnectionReader &reader) | |
~WireReader () | |
void | expectAccept () |
void | accept () |
void | allowGetMode () |
bool | clear () |
void | fail () |
bool | read (WirePortable &obj) |
bool | read (yarp::os::PortReader &obj) |
bool | readNested (WirePortable &obj) |
bool | readNested (yarp::os::PortReader &obj) |
bool | readBool (bool &x) |
bool | readI8 (std::int8_t &x) |
bool | readI16 (std::int16_t &x) |
bool | readI32 (std::int32_t &x) |
bool | readI64 (std::int64_t &x) |
bool | readFloat32 (yarp::conf::float32_t &x) |
bool | readFloat64 (yarp::conf::float64_t &x) |
bool | readVocab (std::int32_t &x) |
bool | readByte (std::int8_t &x) |
bool | readDouble (double &x) |
std::int8_t | expectInt8 () |
std::int16_t | expectInt16 () |
std::int32_t | expectInt32 () |
std::int64_t | expectInt64 () |
yarp::conf::float32_t | expectFloat32 () |
yarp::conf::float64_t | expectFloat64 () |
int | expectInt () |
double | expectDouble () |
bool | readString (std::string &str, bool *is_vocab=nullptr) |
bool | readBinary (std::string &str) |
bool | readEnum (std::int32_t &x, yarp::os::idl::WireVocab &converter) |
bool | readListHeader () |
bool | readListHeader (int len) |
bool | readListReturn () |
int | getLength () const |
ConnectionWriter & | getWriter () |
bool | isValid () |
bool | isError () |
std::string | readTag () |
void | readListBegin (yarp::os::idl::WireState &nstate, std::uint32_t &len) |
void | readSetBegin (yarp::os::idl::WireState &nstate, std::uint32_t &len) |
void | readMapBegin (yarp::os::idl::WireState &nstate, yarp::os::idl::WireState &nstate2, std::uint32_t &len) |
void | readListEnd () |
void | readSetEnd () |
void | readMapEnd () |
bool | noMore () |
bool | getMode () const |
bool | getIsVocab () const |
const std::string & | getString () const |
IDL-friendly connection reader.
Used by YARP IDL tools, not intended for end-user.
Definition at line 32 of file WireReader.h.
WireReader::WireReader | ( | ConnectionReader & | reader | ) |
Definition at line 19 of file WireReader.cpp.
WireReader::~WireReader | ( | ) |
Definition at line 31 of file WireReader.cpp.
void WireReader::accept | ( | ) |
Definition at line 49 of file WireReader.cpp.
void WireReader::allowGetMode | ( | ) |
Definition at line 54 of file WireReader.cpp.
bool WireReader::clear | ( | ) |
Definition at line 59 of file WireReader.cpp.
void WireReader::expectAccept | ( | ) |
Definition at line 43 of file WireReader.cpp.
|
inline |
Definition at line 135 of file WireReader.h.
|
inline |
Definition at line 113 of file WireReader.h.
|
inline |
Definition at line 120 of file WireReader.h.
|
inline |
Definition at line 129 of file WireReader.h.
|
inline |
Definition at line 93 of file WireReader.h.
|
inline |
Definition at line 99 of file WireReader.h.
|
inline |
Definition at line 106 of file WireReader.h.
|
inline |
Definition at line 87 of file WireReader.h.
void WireReader::fail | ( | ) |
Definition at line 74 of file WireReader.cpp.
bool WireReader::getIsVocab | ( | ) | const |
Definition at line 660 of file WireReader.cpp.
|
inline |
Definition at line 153 of file WireReader.h.
bool WireReader::getMode | ( | ) | const |
Definition at line 655 of file WireReader.cpp.
const std::string & WireReader::getString | ( | ) | const |
Definition at line 665 of file WireReader.cpp.
ConnectionWriter & WireReader::getWriter | ( | ) |
Definition at line 532 of file WireReader.cpp.
bool WireReader::isError | ( | ) |
Definition at line 547 of file WireReader.cpp.
bool WireReader::isValid | ( | ) |
Definition at line 542 of file WireReader.cpp.
bool WireReader::noMore | ( | ) |
Definition at line 628 of file WireReader.cpp.
bool WireReader::read | ( | WirePortable & | obj | ) |
Definition at line 81 of file WireReader.cpp.
bool WireReader::read | ( | yarp::os::PortReader & | obj | ) |
Definition at line 86 of file WireReader.cpp.
bool WireReader::readBinary | ( | std::string & | str | ) |
Definition at line 387 of file WireReader.cpp.
bool WireReader::readBool | ( | bool & | x | ) |
Definition at line 101 of file WireReader.cpp.
|
inline |
Definition at line 75 of file WireReader.h.
|
inline |
Definition at line 81 of file WireReader.h.
bool WireReader::readEnum | ( | std::int32_t & | x, |
yarp::os::idl::WireVocab & | converter | ||
) |
Definition at line 424 of file WireReader.cpp.
bool WireReader::readFloat32 | ( | yarp::conf::float32_t & | x | ) |
Definition at line 240 of file WireReader.cpp.
bool WireReader::readFloat64 | ( | yarp::conf::float64_t & | x | ) |
Definition at line 279 of file WireReader.cpp.
bool WireReader::readI16 | ( | std::int16_t & | x | ) |
Definition at line 148 of file WireReader.cpp.
bool WireReader::readI32 | ( | std::int32_t & | x | ) |
Definition at line 178 of file WireReader.cpp.
bool WireReader::readI64 | ( | std::int64_t & | x | ) |
Definition at line 207 of file WireReader.cpp.
bool WireReader::readI8 | ( | std::int8_t & | x | ) |
Definition at line 121 of file WireReader.cpp.
void WireReader::readListBegin | ( | yarp::os::idl::WireState & | nstate, |
std::uint32_t & | len | ||
) |
Definition at line 589 of file WireReader.cpp.
void WireReader::readListEnd | ( | ) |
Definition at line 613 of file WireReader.cpp.
bool WireReader::readListHeader | ( | ) |
Definition at line 470 of file WireReader.cpp.
bool WireReader::readListHeader | ( | int | len | ) |
Definition at line 493 of file WireReader.cpp.
bool WireReader::readListReturn | ( | ) |
Definition at line 501 of file WireReader.cpp.
void WireReader::readMapBegin | ( | yarp::os::idl::WireState & | nstate, |
yarp::os::idl::WireState & | nstate2, | ||
std::uint32_t & | len | ||
) |
Definition at line 605 of file WireReader.cpp.
void WireReader::readMapEnd | ( | ) |
Definition at line 623 of file WireReader.cpp.
bool WireReader::readNested | ( | WirePortable & | obj | ) |
Definition at line 91 of file WireReader.cpp.
bool WireReader::readNested | ( | yarp::os::PortReader & | obj | ) |
Definition at line 96 of file WireReader.cpp.
void WireReader::readSetBegin | ( | yarp::os::idl::WireState & | nstate, |
std::uint32_t & | len | ||
) |
Definition at line 600 of file WireReader.cpp.
void WireReader::readSetEnd | ( | ) |
Definition at line 618 of file WireReader.cpp.
bool WireReader::readString | ( | std::string & | str, |
bool * | is_vocab = nullptr |
||
) |
Definition at line 339 of file WireReader.cpp.
std::string WireReader::readTag | ( | ) |
Definition at line 552 of file WireReader.cpp.
bool WireReader::readVocab | ( | std::int32_t & | x | ) |
Definition at line 319 of file WireReader.cpp.