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

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
 

Detailed Description

IDL-friendly connection writer.

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

Definition at line 29 of file WireWriter.h.

Constructor & Destructor Documentation

◆ WireWriter() [1/2]

WireWriter::WireWriter ( ConnectionWriter writer)

Definition at line 19 of file WireWriter.cpp.

◆ WireWriter() [2/2]

WireWriter::WireWriter ( WireReader reader)

Definition at line 27 of file WireWriter.cpp.

◆ ~WireWriter()

WireWriter::~WireWriter ( )

Definition at line 40 of file WireWriter.cpp.

Member Function Documentation

◆ isError()

bool WireWriter::isError ( ) const

Definition at line 159 of file WireWriter.cpp.

◆ isNull()

bool WireWriter::isNull ( ) const

Definition at line 47 of file WireWriter.cpp.

◆ isValid()

bool WireWriter::isValid ( ) const

Definition at line 154 of file WireWriter.cpp.

◆ write() [1/2]

bool WireWriter::write ( const WirePortable obj) const

Definition at line 52 of file WireWriter.cpp.

◆ write() [2/2]

bool WireWriter::write ( const yarp::os::PortWriter obj) const

Definition at line 57 of file WireWriter.cpp.

◆ writeBinary()

bool WireWriter::writeBinary ( const std::string &  tag) const

Definition at line 197 of file WireWriter.cpp.

◆ writeBool()

bool WireWriter::writeBool ( bool  x) const

Definition at line 72 of file WireWriter.cpp.

◆ writeByte()

bool yarp::os::idl::WireWriter::writeByte ( std::int8_t  x) const
inline

Definition at line 113 of file WireWriter.h.

◆ writeDouble()

bool yarp::os::idl::WireWriter::writeDouble ( double  x) const
inline

Definition at line 119 of file WireWriter.h.

◆ writeFloat32()

bool WireWriter::writeFloat32 ( yarp::conf::float32_t  x) const

Definition at line 107 of file WireWriter.cpp.

◆ writeFloat64()

bool WireWriter::writeFloat64 ( yarp::conf::float64_t  x) const

Definition at line 114 of file WireWriter.cpp.

◆ writeI16()

bool WireWriter::writeI16 ( std::int16_t  x) const

Definition at line 86 of file WireWriter.cpp.

◆ writeI32()

bool WireWriter::writeI32 ( std::int32_t  x) const

Definition at line 93 of file WireWriter.cpp.

◆ writeI64()

bool WireWriter::writeI64 ( std::int64_t  x) const

Definition at line 100 of file WireWriter.cpp.

◆ writeI8()

bool WireWriter::writeI8 ( std::int8_t  x) const

Definition at line 79 of file WireWriter.cpp.

◆ writeListBegin()

bool WireWriter::writeListBegin ( int  tag,
std::uint32_t  len 
) const

Definition at line 227 of file WireWriter.cpp.

◆ writeListEnd()

bool WireWriter::writeListEnd ( ) const

Definition at line 250 of file WireWriter.cpp.

◆ writeListHeader()

bool WireWriter::writeListHeader ( int  len) const

Definition at line 206 of file WireWriter.cpp.

◆ writeMapBegin()

bool WireWriter::writeMapBegin ( int  tag,
int  tag2,
std::uint32_t  len 
) const

Definition at line 241 of file WireWriter.cpp.

◆ writeMapEnd()

bool WireWriter::writeMapEnd ( ) const

Definition at line 260 of file WireWriter.cpp.

◆ writeNested() [1/2]

bool WireWriter::writeNested ( const WirePortable obj) const

Definition at line 62 of file WireWriter.cpp.

◆ writeNested() [2/2]

bool WireWriter::writeNested ( const yarp::os::PortWriter obj) const

Definition at line 67 of file WireWriter.cpp.

◆ writeOnewayResponse()

bool WireWriter::writeOnewayResponse ( ) const

Definition at line 265 of file WireWriter.cpp.

◆ writeSetBegin()

bool WireWriter::writeSetBegin ( int  tag,
std::uint32_t  len 
) const

Definition at line 236 of file WireWriter.cpp.

◆ writeSetEnd()

bool WireWriter::writeSetEnd ( ) const

Definition at line 255 of file WireWriter.cpp.

◆ writeSizeT()

bool WireWriter::writeSizeT ( std::size_t  x) const

Definition at line 148 of file WireWriter.cpp.

◆ writeString()

bool WireWriter::writeString ( const std::string &  tag) const

Definition at line 189 of file WireWriter.cpp.

◆ writeTag()

bool WireWriter::writeTag ( const char *  tag,
int  split,
int  len 
) const

Definition at line 164 of file WireWriter.cpp.

◆ writeUI16()

bool WireWriter::writeUI16 ( std::uint16_t  x) const

Definition at line 126 of file WireWriter.cpp.

◆ writeUI32()

bool WireWriter::writeUI32 ( std::uint32_t  x) const

Definition at line 131 of file WireWriter.cpp.

◆ writeUI64()

bool WireWriter::writeUI64 ( std::uint64_t  x) const

Definition at line 136 of file WireWriter.cpp.

◆ writeUI8()

bool WireWriter::writeUI8 ( std::uint8_t  x) const

Definition at line 121 of file WireWriter.cpp.

◆ writeVocab()

bool yarp::os::idl::WireWriter::writeVocab ( std::int32_t  x) const
inline

Definition at line 127 of file WireWriter.h.

◆ writeVocab32() [1/3]

bool yarp::os::idl::WireWriter::writeVocab32 ( char  a,
char  b = 0,
char  c = 0,
char  d = 0 
) const
inline

Definition at line 72 of file WireWriter.h.

◆ writeVocab32() [2/3]

bool yarp::os::idl::WireWriter::writeVocab32 ( const std::string &  str) const
inline

Definition at line 78 of file WireWriter.h.

◆ writeVocab32() [3/3]

bool WireWriter::writeVocab32 ( yarp::conf::vocab32_t  x) const

Definition at line 141 of file WireWriter.cpp.


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