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;
83 bool writeVocab64(
char a,
char b = 0,
char c = 0,
char d = 0,
char e = 0,
char f = 0,
char g = 0,
char h = 0,
bool skip_tag =
false)
const
94 bool writeSizeT(std::size_t x,
bool skip_tag =
false)
const;
100 bool writeTag(
const char* tag,
int split,
int len)
const;
102 bool writeString(
const std::string& str,
bool skip_tag =
false)
const;
104 bool writeBlock(
const char* data,
size_t len)
const;
106 bool writeBinary(
const std::string&
blob,
bool skip_tag =
false)
const;
108 bool writeListHeader(
int len)
const;
110 bool writeListBegin(
int tag,
size_t len)
const;
112 bool writeSetBegin(
int tag,
size_t len)
const;
114 bool writeMapBegin(
int tag,
int tag2,
size_t len)
const;
116 bool writeListEnd()
const;
118 bool writeSetEnd()
const;
120 bool writeMapEnd()
const;
122 bool writeOnewayResponse()
const;
127 bool get_mode {
false};
129 bool get_is_vocab32 {
false};
130 mutable bool need_ok {
false};
131 ConnectionReader* reader {
nullptr};
132 ConnectionWriter& writer;
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 writeVocab64(char a, char b=0, char c=0, char d=0, char e=0, char f=0, char g=0, char h=0, bool skip_tag=false) const
bool writeVocab64(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.
NetInt64 encode64(const std::string &str)
Convert a string into a vocabulary identifier.
constexpr yarp::conf::vocab64_t createVocab64(char a, char b=0, char c=0, char d=0, char e=0, char f=0, char g=0, char h=0)
Create a vocab from chars.
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.