6 #ifndef YARP_OS_IDL_WIREWRITER_H
7 #define YARP_OS_IDL_WIREWRITER_H
48 bool writeBool(
bool x)
const;
50 bool writeI8(std::int8_t x)
const;
52 bool writeI16(std::int16_t x)
const;
54 bool writeI32(std::int32_t x)
const;
56 bool writeI64(std::int64_t x)
const;
62 bool writeUI8(std::uint8_t x)
const;
64 bool writeUI16(std::uint16_t x)
const;
66 bool writeUI32(std::uint32_t x)
const;
68 bool writeUI64(std::uint64_t x)
const;
72 bool writeVocab32(
char a,
char b = 0,
char c = 0,
char d = 0)
const
89 bool writeTag(
const char* tag,
int split,
int len)
const;
91 bool writeString(
const std::string& tag)
const;
93 bool writeBinary(
const std::string& tag)
const;
95 bool writeListHeader(
int len)
const;
97 bool writeListBegin(
int tag, std::uint32_t len)
const;
99 bool writeSetBegin(
int tag, std::uint32_t len)
const;
101 bool writeMapBegin(
int tag,
int tag2, std::uint32_t len)
const;
103 bool writeListEnd()
const;
105 bool writeSetEnd()
const;
107 bool writeMapEnd()
const;
109 bool writeOnewayResponse()
const;
111 #ifndef YARP_NO_DEPRECATED
113 bool writeByte(std::int8_t x)
const
119 bool writeDouble(
double x)
const
125 #ifndef YARP_NO_DEPRECATED
127 bool writeVocab(std::int32_t x)
const
129 return writeVocab32(x);
137 mutable bool need_ok;
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(char a, char b=0, char c=0, char d=0) const
bool writeVocab32(const std::string &str) const
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
std::string get_string(const std::string &key, bool *found=nullptr)
Read a string from an environment variable.
ContainerT split(const typename ContainerT::value_type &s, std::basic_regex< typename ContainerT::value_type::value_type > regex)
Utility to split a string by a separator, into a vector of strings.
bool isValid()
Check if time is valid (non-zero).
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.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.