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 writeByte (std::int8_t x) const
 
bool writeDouble (double x) const
 
bool writeVocab (std::int32_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
 

Detailed Description

IDL-friendly connection writer.

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

Definition at line 32 of file WireWriter.h.

Constructor & Destructor Documentation

◆ WireWriter() [1/2]

WireWriter::WireWriter ( ConnectionWriter writer)

Definition at line 22 of file WireWriter.cpp.

◆ WireWriter() [2/2]

WireWriter::WireWriter ( WireReader reader)

Definition at line 30 of file WireWriter.cpp.

◆ ~WireWriter()

WireWriter::~WireWriter ( )

Definition at line 43 of file WireWriter.cpp.

Member Function Documentation

◆ isError()

bool WireWriter::isError ( ) const

Definition at line 136 of file WireWriter.cpp.

◆ isNull()

bool WireWriter::isNull ( ) const

Definition at line 50 of file WireWriter.cpp.

◆ isValid()

bool WireWriter::isValid ( ) const

Definition at line 131 of file WireWriter.cpp.

◆ write() [1/2]

bool WireWriter::write ( const WirePortable obj) const

Definition at line 55 of file WireWriter.cpp.

◆ write() [2/2]

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

Definition at line 60 of file WireWriter.cpp.

◆ writeBinary()

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

Definition at line 174 of file WireWriter.cpp.

◆ writeBool()

bool WireWriter::writeBool ( bool  x) const

Definition at line 75 of file WireWriter.cpp.

◆ writeByte()

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

Definition at line 67 of file WireWriter.h.

◆ writeDouble()

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

Definition at line 73 of file WireWriter.h.

◆ writeFloat32()

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

Definition at line 110 of file WireWriter.cpp.

◆ writeFloat64()

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

Definition at line 117 of file WireWriter.cpp.

◆ writeI16()

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

Definition at line 89 of file WireWriter.cpp.

◆ writeI32()

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

Definition at line 96 of file WireWriter.cpp.

◆ writeI64()

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

Definition at line 103 of file WireWriter.cpp.

◆ writeI8()

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

Definition at line 82 of file WireWriter.cpp.

◆ writeListBegin()

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

Definition at line 204 of file WireWriter.cpp.

◆ writeListEnd()

bool WireWriter::writeListEnd ( ) const

Definition at line 227 of file WireWriter.cpp.

◆ writeListHeader()

bool WireWriter::writeListHeader ( int  len) const

Definition at line 183 of file WireWriter.cpp.

◆ writeMapBegin()

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

Definition at line 218 of file WireWriter.cpp.

◆ writeMapEnd()

bool WireWriter::writeMapEnd ( ) const

Definition at line 237 of file WireWriter.cpp.

◆ writeNested() [1/2]

bool WireWriter::writeNested ( const WirePortable obj) const

Definition at line 65 of file WireWriter.cpp.

◆ writeNested() [2/2]

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

Definition at line 70 of file WireWriter.cpp.

◆ writeOnewayResponse()

bool WireWriter::writeOnewayResponse ( ) const

Definition at line 242 of file WireWriter.cpp.

◆ writeSetBegin()

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

Definition at line 213 of file WireWriter.cpp.

◆ writeSetEnd()

bool WireWriter::writeSetEnd ( ) const

Definition at line 232 of file WireWriter.cpp.

◆ writeString()

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

Definition at line 166 of file WireWriter.cpp.

◆ writeTag()

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

Definition at line 141 of file WireWriter.cpp.

◆ writeVocab()

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

Definition at line 124 of file WireWriter.cpp.


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