6#ifndef YARP_OS_IDL_WIREWRITER_H
7#define YARP_OS_IDL_WIREWRITER_H
46 bool writeBool(
bool x,
bool skip_tag =
false)
const;
48 bool writeI8(std::int8_t x,
bool skip_tag =
false)
const;
50 bool writeI16(std::int16_t x,
bool skip_tag =
false)
const;
52 bool writeI32(std::int32_t x,
bool skip_tag =
false)
const;
54 bool writeI64(std::int64_t x,
bool skip_tag =
false)
const;
60 bool writeUI8(std::uint8_t x,
bool skip_tag =
false)
const;
62 bool writeUI16(std::uint16_t x,
bool skip_tag =
false)
const;
64 bool writeUI32(std::uint32_t x,
bool skip_tag =
false)
const;
66 bool writeUI64(std::uint64_t x,
bool skip_tag =
false)
const;
81 bool writeSizeT(std::size_t x,
bool skip_tag =
false)
const;
87 bool writeTag(
const char* tag,
int split,
int len)
const;
89 bool writeString(
const std::string& str,
bool skip_tag =
false)
const;
91 bool writeBlock(
const char* data,
size_t len)
const;
93 bool writeBinary(
const std::string&
blob,
bool skip_tag =
false)
const;
95 bool writeListHeader(
int len)
const;
97 bool writeListBegin(
int tag,
size_t len)
const;
99 bool writeSetBegin(
int tag,
size_t len)
const;
101 bool writeMapBegin(
int tag,
int tag2,
size_t len)
const;
103 bool writeListEnd()
const;
105 bool writeSetEnd()
const;
107 bool writeMapEnd()
const;
109 bool writeOnewayResponse()
const;
114 bool get_mode {
false};
116 bool get_is_vocab32 {
false};
117 mutable bool need_ok {
false};
118 ConnectionReader* reader {
nullptr};
119 ConnectionWriter& writer;
void split(const std::string &s, char delim, std::vector< std::string > &elements)
A mini-server for performing network communication in the background.
An interface for writing to a network connection.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
IDL-friendly connection writer.
bool writeVocab32(const std::string &str, bool skip_tag=false) const
bool writeVocab32(char a, char b=0, char c=0, char d=0, bool skip_tag=false) const
NetInt32 encode(const std::string &str)
Convert a string into a vocabulary identifier.
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.