YARP
Yet Another Robot Platform
yarp::os::idl::WireReader Class Reference

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
 
ConnectionWritergetWriter ()
 
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
 

Detailed Description

IDL-friendly connection reader.

Used by YARP IDL tools, not intended for end-user.

Definition at line 32 of file WireReader.h.

Constructor & Destructor Documentation

◆ WireReader()

WireReader::WireReader ( ConnectionReader reader)

Definition at line 19 of file WireReader.cpp.

◆ ~WireReader()

WireReader::~WireReader ( )

Definition at line 31 of file WireReader.cpp.

Member Function Documentation

◆ accept()

void WireReader::accept ( )

Definition at line 49 of file WireReader.cpp.

◆ allowGetMode()

void WireReader::allowGetMode ( )

Definition at line 54 of file WireReader.cpp.

◆ clear()

bool WireReader::clear ( )

Definition at line 59 of file WireReader.cpp.

◆ expectAccept()

void WireReader::expectAccept ( )

Definition at line 43 of file WireReader.cpp.

◆ expectDouble()

double yarp::os::idl::WireReader::expectDouble ( )
inline

Definition at line 135 of file WireReader.h.

◆ expectFloat32()

yarp::conf::float32_t yarp::os::idl::WireReader::expectFloat32 ( )
inline

Definition at line 113 of file WireReader.h.

◆ expectFloat64()

yarp::conf::float64_t yarp::os::idl::WireReader::expectFloat64 ( )
inline

Definition at line 120 of file WireReader.h.

◆ expectInt()

int yarp::os::idl::WireReader::expectInt ( )
inline

Definition at line 129 of file WireReader.h.

◆ expectInt16()

std::int16_t yarp::os::idl::WireReader::expectInt16 ( )
inline

Definition at line 93 of file WireReader.h.

◆ expectInt32()

std::int32_t yarp::os::idl::WireReader::expectInt32 ( )
inline

Definition at line 99 of file WireReader.h.

◆ expectInt64()

std::int64_t yarp::os::idl::WireReader::expectInt64 ( )
inline

Definition at line 106 of file WireReader.h.

◆ expectInt8()

std::int8_t yarp::os::idl::WireReader::expectInt8 ( )
inline

Definition at line 87 of file WireReader.h.

◆ fail()

void WireReader::fail ( )

Definition at line 74 of file WireReader.cpp.

◆ getIsVocab()

bool WireReader::getIsVocab ( ) const

Definition at line 660 of file WireReader.cpp.

◆ getLength()

int yarp::os::idl::WireReader::getLength ( ) const
inline

Definition at line 153 of file WireReader.h.

◆ getMode()

bool WireReader::getMode ( ) const

Definition at line 655 of file WireReader.cpp.

◆ getString()

const std::string & WireReader::getString ( ) const

Definition at line 665 of file WireReader.cpp.

◆ getWriter()

ConnectionWriter & WireReader::getWriter ( )

Definition at line 532 of file WireReader.cpp.

◆ isError()

bool WireReader::isError ( )

Definition at line 547 of file WireReader.cpp.

◆ isValid()

bool WireReader::isValid ( )

Definition at line 542 of file WireReader.cpp.

◆ noMore()

bool WireReader::noMore ( )

Definition at line 628 of file WireReader.cpp.

◆ read() [1/2]

bool WireReader::read ( WirePortable obj)

Definition at line 81 of file WireReader.cpp.

◆ read() [2/2]

bool WireReader::read ( yarp::os::PortReader obj)

Definition at line 86 of file WireReader.cpp.

◆ readBinary()

bool WireReader::readBinary ( std::string &  str)

Definition at line 387 of file WireReader.cpp.

◆ readBool()

bool WireReader::readBool ( bool &  x)

Definition at line 101 of file WireReader.cpp.

◆ readByte()

bool yarp::os::idl::WireReader::readByte ( std::int8_t &  x)
inline

Definition at line 75 of file WireReader.h.

◆ readDouble()

bool yarp::os::idl::WireReader::readDouble ( double &  x)
inline

Definition at line 81 of file WireReader.h.

◆ readEnum()

bool WireReader::readEnum ( std::int32_t &  x,
yarp::os::idl::WireVocab converter 
)

Definition at line 424 of file WireReader.cpp.

◆ readFloat32()

bool WireReader::readFloat32 ( yarp::conf::float32_t x)

Definition at line 240 of file WireReader.cpp.

◆ readFloat64()

bool WireReader::readFloat64 ( yarp::conf::float64_t x)

Definition at line 279 of file WireReader.cpp.

◆ readI16()

bool WireReader::readI16 ( std::int16_t &  x)

Definition at line 148 of file WireReader.cpp.

◆ readI32()

bool WireReader::readI32 ( std::int32_t &  x)

Definition at line 178 of file WireReader.cpp.

◆ readI64()

bool WireReader::readI64 ( std::int64_t &  x)

Definition at line 207 of file WireReader.cpp.

◆ readI8()

bool WireReader::readI8 ( std::int8_t &  x)

Definition at line 121 of file WireReader.cpp.

◆ readListBegin()

void WireReader::readListBegin ( yarp::os::idl::WireState nstate,
std::uint32_t &  len 
)

Definition at line 589 of file WireReader.cpp.

◆ readListEnd()

void WireReader::readListEnd ( )

Definition at line 613 of file WireReader.cpp.

◆ readListHeader() [1/2]

bool WireReader::readListHeader ( )

Definition at line 470 of file WireReader.cpp.

◆ readListHeader() [2/2]

bool WireReader::readListHeader ( int  len)

Definition at line 493 of file WireReader.cpp.

◆ readListReturn()

bool WireReader::readListReturn ( )

Definition at line 501 of file WireReader.cpp.

◆ readMapBegin()

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.

◆ readMapEnd()

void WireReader::readMapEnd ( )

Definition at line 623 of file WireReader.cpp.

◆ readNested() [1/2]

bool WireReader::readNested ( WirePortable obj)

Definition at line 91 of file WireReader.cpp.

◆ readNested() [2/2]

bool WireReader::readNested ( yarp::os::PortReader obj)

Definition at line 96 of file WireReader.cpp.

◆ readSetBegin()

void WireReader::readSetBegin ( yarp::os::idl::WireState nstate,
std::uint32_t &  len 
)

Definition at line 600 of file WireReader.cpp.

◆ readSetEnd()

void WireReader::readSetEnd ( )

Definition at line 618 of file WireReader.cpp.

◆ readString()

bool WireReader::readString ( std::string &  str,
bool *  is_vocab = nullptr 
)

Definition at line 339 of file WireReader.cpp.

◆ readTag()

std::string WireReader::readTag ( )

Definition at line 552 of file WireReader.cpp.

◆ readVocab()

bool WireReader::readVocab ( std::int32_t &  x)

Definition at line 319 of file WireReader.cpp.


The documentation for this class was generated from the following files: