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 readUI8 (std::uint8_t &x)
 
bool readUI16 (std::uint16_t &x)
 
bool readUI32 (std::uint32_t &x)
 
bool readUI64 (std::uint64_t &x)
 
bool readVocab32 (yarp::conf::vocab32_t &x)
 
bool readSizeT (std::size_t &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 ()
 
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 getIsVocab32 () const
 
bool getIsVocab () const
 
const std::string & getString () const
 
bool readByte (std::int8_t &x)
 
bool readDouble (double &x)
 
bool readVocab (std::int32_t &x)
 
int expectInt ()
 
double expectDouble ()
 

Detailed Description

IDL-friendly connection reader.

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

Definition at line 29 of file WireReader.h.

Constructor & Destructor Documentation

◆ WireReader()

WireReader::WireReader ( ConnectionReader reader)

Definition at line 16 of file WireReader.cpp.

◆ ~WireReader()

WireReader::~WireReader ( )

Definition at line 28 of file WireReader.cpp.

Member Function Documentation

◆ accept()

void WireReader::accept ( )

Definition at line 46 of file WireReader.cpp.

◆ allowGetMode()

void WireReader::allowGetMode ( )

Definition at line 51 of file WireReader.cpp.

◆ clear()

bool WireReader::clear ( )

Definition at line 56 of file WireReader.cpp.

◆ expectAccept()

void WireReader::expectAccept ( )

Definition at line 40 of file WireReader.cpp.

◆ expectDouble()

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

Definition at line 200 of file WireReader.h.

◆ expectFloat32()

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

Definition at line 106 of file WireReader.h.

◆ expectFloat64()

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

Definition at line 113 of file WireReader.h.

◆ expectInt()

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

Definition at line 194 of file WireReader.h.

◆ expectInt16()

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

Definition at line 86 of file WireReader.h.

◆ expectInt32()

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

Definition at line 92 of file WireReader.h.

◆ expectInt64()

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

Definition at line 99 of file WireReader.h.

◆ expectInt8()

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

Definition at line 80 of file WireReader.h.

◆ fail()

void WireReader::fail ( )

Definition at line 71 of file WireReader.cpp.

◆ getIsVocab()

bool yarp::os::idl::WireReader::getIsVocab ( ) const
inline

Definition at line 164 of file WireReader.h.

◆ getIsVocab32()

bool WireReader::getIsVocab32 ( ) const

Definition at line 703 of file WireReader.cpp.

◆ getLength()

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

Definition at line 132 of file WireReader.h.

◆ getMode()

bool WireReader::getMode ( ) const

Definition at line 698 of file WireReader.cpp.

◆ getString()

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

Definition at line 708 of file WireReader.cpp.

◆ getWriter()

ConnectionWriter & WireReader::getWriter ( )

Definition at line 575 of file WireReader.cpp.

◆ isError()

bool WireReader::isError ( )

Definition at line 590 of file WireReader.cpp.

◆ isValid()

bool WireReader::isValid ( )

Definition at line 585 of file WireReader.cpp.

◆ noMore()

bool WireReader::noMore ( )

Definition at line 671 of file WireReader.cpp.

◆ read() [1/2]

bool WireReader::read ( WirePortable obj)

Definition at line 78 of file WireReader.cpp.

◆ read() [2/2]

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

Definition at line 83 of file WireReader.cpp.

◆ readBinary()

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

Definition at line 430 of file WireReader.cpp.

◆ readBool()

bool WireReader::readBool ( bool &  x)

Definition at line 98 of file WireReader.cpp.

◆ readByte()

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

Definition at line 173 of file WireReader.h.

◆ readDouble()

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

Definition at line 179 of file WireReader.h.

◆ readEnum()

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

Definition at line 467 of file WireReader.cpp.

◆ readFloat32()

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

Definition at line 238 of file WireReader.cpp.

◆ readFloat64()

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

Definition at line 277 of file WireReader.cpp.

◆ readI16()

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

Definition at line 145 of file WireReader.cpp.

◆ readI32()

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

Definition at line 175 of file WireReader.cpp.

◆ readI64()

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

Definition at line 205 of file WireReader.cpp.

◆ readI8()

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

Definition at line 118 of file WireReader.cpp.

◆ readListBegin()

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

Definition at line 632 of file WireReader.cpp.

◆ readListEnd()

void WireReader::readListEnd ( )

Definition at line 656 of file WireReader.cpp.

◆ readListHeader() [1/2]

bool WireReader::readListHeader ( )

Definition at line 513 of file WireReader.cpp.

◆ readListHeader() [2/2]

bool WireReader::readListHeader ( int  len)

Definition at line 536 of file WireReader.cpp.

◆ readListReturn()

bool WireReader::readListReturn ( )

Definition at line 544 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 648 of file WireReader.cpp.

◆ readMapEnd()

void WireReader::readMapEnd ( )

Definition at line 666 of file WireReader.cpp.

◆ readNested() [1/2]

bool WireReader::readNested ( WirePortable obj)

Definition at line 88 of file WireReader.cpp.

◆ readNested() [2/2]

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

Definition at line 93 of file WireReader.cpp.

◆ readSetBegin()

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

Definition at line 643 of file WireReader.cpp.

◆ readSetEnd()

void WireReader::readSetEnd ( )

Definition at line 661 of file WireReader.cpp.

◆ readSizeT()

bool WireReader::readSizeT ( std::size_t &  x)

Definition at line 357 of file WireReader.cpp.

◆ readString()

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

Definition at line 382 of file WireReader.cpp.

◆ readTag()

std::string WireReader::readTag ( )

Definition at line 595 of file WireReader.cpp.

◆ readUI16()

bool WireReader::readUI16 ( std::uint16_t &  x)

Definition at line 321 of file WireReader.cpp.

◆ readUI32()

bool WireReader::readUI32 ( std::uint32_t &  x)

Definition at line 326 of file WireReader.cpp.

◆ readUI64()

bool WireReader::readUI64 ( std::uint64_t &  x)

Definition at line 331 of file WireReader.cpp.

◆ readUI8()

bool WireReader::readUI8 ( std::uint8_t &  x)

Definition at line 316 of file WireReader.cpp.

◆ readVocab()

bool yarp::os::idl::WireReader::readVocab ( std::int32_t &  x)
inline

Definition at line 187 of file WireReader.h.

◆ readVocab32()

bool WireReader::readVocab32 ( yarp::conf::vocab32_t x)

Definition at line 336 of file WireReader.cpp.


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