YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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, bool skip_tag=false) const
 
bool writeI8 (std::int8_t x, bool skip_tag=false) const
 
bool writeI16 (std::int16_t x, bool skip_tag=false) const
 
bool writeI32 (std::int32_t x, bool skip_tag=false) const
 
bool writeI64 (std::int64_t x, bool skip_tag=false) const
 
bool writeFloat32 (yarp::conf::float32_t x, bool skip_tag=false) const
 
bool writeFloat64 (yarp::conf::float64_t x, bool skip_tag=false) const
 
bool writeUI8 (std::uint8_t x, bool skip_tag=false) const
 
bool writeUI16 (std::uint16_t x, bool skip_tag=false) const
 
bool writeUI32 (std::uint32_t x, bool skip_tag=false) const
 
bool writeUI64 (std::uint64_t x, bool skip_tag=false) const
 
bool writeVocab32 (yarp::conf::vocab32_t x, bool skip_tag=false) const
 
bool writeVocab32 (char a, char b=0, char c=0, char d=0, bool skip_tag=false) const
 
bool writeVocab32 (const std::string &str, bool skip_tag=false) const
 
bool writeSizeT (std::size_t x, bool skip_tag=false) const
 
bool isValid () const
 
bool isError () const
 
bool writeTag (const char *tag, int split, int len) const
 
bool writeString (const std::string &str, bool skip_tag=false) const
 
bool writeBlock (const char *data, size_t len) const
 
bool writeBinary (const std::string &blob, bool skip_tag=false) const
 
bool writeListHeader (int len) const
 
bool writeListBegin (int tag, size_t len) const
 
bool writeSetBegin (int tag, size_t len) const
 
bool writeMapBegin (int tag, int tag2, size_t len) const
 
bool writeListEnd () const
 
bool writeSetEnd () const
 
bool writeMapEnd () const
 
bool writeOnewayResponse () const
 
void flush ()
 

Detailed Description

IDL-friendly connection writer.

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

Definition at line 27 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 25 of file WireWriter.cpp.

◆ ~WireWriter()

WireWriter::~WireWriter ( )

Definition at line 35 of file WireWriter.cpp.

Member Function Documentation

◆ flush()

void WireWriter::flush ( )

Definition at line 299 of file WireWriter.cpp.

◆ isError()

bool WireWriter::isError ( ) const

Definition at line 173 of file WireWriter.cpp.

◆ isNull()

bool WireWriter::isNull ( ) const

Definition at line 45 of file WireWriter.cpp.

◆ isValid()

bool WireWriter::isValid ( ) const

Definition at line 168 of file WireWriter.cpp.

◆ write() [1/2]

bool WireWriter::write ( const WirePortable obj) const

Definition at line 50 of file WireWriter.cpp.

◆ write() [2/2]

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

Definition at line 55 of file WireWriter.cpp.

◆ writeBinary()

bool WireWriter::writeBinary ( const std::string &  blob,
bool  skip_tag = false 
) const

Definition at line 220 of file WireWriter.cpp.

◆ writeBlock()

bool WireWriter::writeBlock ( const char data,
size_t  len 
) const

Definition at line 213 of file WireWriter.cpp.

◆ writeBool()

bool WireWriter::writeBool ( bool  x,
bool  skip_tag = false 
) const

Definition at line 70 of file WireWriter.cpp.

◆ writeFloat32()

bool WireWriter::writeFloat32 ( yarp::conf::float32_t  x,
bool  skip_tag = false 
) const

Definition at line 115 of file WireWriter.cpp.

◆ writeFloat64()

bool WireWriter::writeFloat64 ( yarp::conf::float64_t  x,
bool  skip_tag = false 
) const

Definition at line 124 of file WireWriter.cpp.

◆ writeI16()

bool WireWriter::writeI16 ( std::int16_t  x,
bool  skip_tag = false 
) const

Definition at line 88 of file WireWriter.cpp.

◆ writeI32()

bool WireWriter::writeI32 ( std::int32_t  x,
bool  skip_tag = false 
) const

Definition at line 97 of file WireWriter.cpp.

◆ writeI64()

bool WireWriter::writeI64 ( std::int64_t  x,
bool  skip_tag = false 
) const

Definition at line 106 of file WireWriter.cpp.

◆ writeI8()

bool WireWriter::writeI8 ( std::int8_t  x,
bool  skip_tag = false 
) const

Definition at line 79 of file WireWriter.cpp.

◆ writeListBegin()

bool WireWriter::writeListBegin ( int  tag,
size_t  len 
) const

Definition at line 251 of file WireWriter.cpp.

◆ writeListEnd()

bool WireWriter::writeListEnd ( ) const

Definition at line 274 of file WireWriter.cpp.

◆ writeListHeader()

bool WireWriter::writeListHeader ( int  len) const

Definition at line 231 of file WireWriter.cpp.

◆ writeMapBegin()

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

Definition at line 264 of file WireWriter.cpp.

◆ writeMapEnd()

bool WireWriter::writeMapEnd ( ) const

Definition at line 284 of file WireWriter.cpp.

◆ writeNested() [1/2]

bool WireWriter::writeNested ( const WirePortable obj) const

Definition at line 60 of file WireWriter.cpp.

◆ writeNested() [2/2]

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

Definition at line 65 of file WireWriter.cpp.

◆ writeOnewayResponse()

bool WireWriter::writeOnewayResponse ( ) const

Definition at line 289 of file WireWriter.cpp.

◆ writeSetBegin()

bool WireWriter::writeSetBegin ( int  tag,
size_t  len 
) const

Definition at line 259 of file WireWriter.cpp.

◆ writeSetEnd()

bool WireWriter::writeSetEnd ( ) const

Definition at line 279 of file WireWriter.cpp.

◆ writeSizeT()

bool WireWriter::writeSizeT ( std::size_t  x,
bool  skip_tag = false 
) const

Definition at line 162 of file WireWriter.cpp.

◆ writeString()

bool WireWriter::writeString ( const std::string &  str,
bool  skip_tag = false 
) const

Definition at line 203 of file WireWriter.cpp.

◆ writeTag()

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

Definition at line 178 of file WireWriter.cpp.

◆ writeUI16()

bool WireWriter::writeUI16 ( std::uint16_t  x,
bool  skip_tag = false 
) const

Definition at line 138 of file WireWriter.cpp.

◆ writeUI32()

bool WireWriter::writeUI32 ( std::uint32_t  x,
bool  skip_tag = false 
) const

Definition at line 143 of file WireWriter.cpp.

◆ writeUI64()

bool WireWriter::writeUI64 ( std::uint64_t  x,
bool  skip_tag = false 
) const

Definition at line 148 of file WireWriter.cpp.

◆ writeUI8()

bool WireWriter::writeUI8 ( std::uint8_t  x,
bool  skip_tag = false 
) const

Definition at line 133 of file WireWriter.cpp.

◆ writeVocab32() [1/3]

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

Definition at line 70 of file WireWriter.h.

◆ writeVocab32() [2/3]

bool yarp::os::idl::WireWriter::writeVocab32 ( const std::string &  str,
bool  skip_tag = false 
) const
inline

Definition at line 76 of file WireWriter.h.

◆ writeVocab32() [3/3]

bool WireWriter::writeVocab32 ( yarp::conf::vocab32_t  x,
bool  skip_tag = false 
) const

Definition at line 153 of file WireWriter.cpp.


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