9 #ifndef YARP_OS_IDL_WIREREADER_H
10 #define YARP_OS_IDL_WIREREADER_H
57 bool readBool(
bool& x);
59 bool readI8(std::int8_t& x);
61 bool readI16(std::int16_t& x);
63 bool readI32(std::int32_t& x);
65 bool readI64(std::int64_t& x);
71 bool readVocab(std::int32_t& x);
73 #ifndef YARP_NO_DEPRECATED
75 bool readByte(std::int8_t& x)
81 bool readDouble(
double& x)
83 return readFloat64(x);
127 #ifndef YARP_NO_DEPRECATED
131 return static_cast<int>(expectInt32());
135 double expectDouble()
137 return static_cast<double>(expectFloat64());
141 bool readString(std::string& str,
bool* is_vocab =
nullptr);
143 bool readBinary(std::string& str);
147 bool readListHeader();
149 bool readListHeader(
int len);
151 bool readListReturn();
164 std::string readTag();
180 bool getMode()
const;
182 bool getIsVocab()
const;
184 const std::string& getString()
const;
191 bool flush_if_needed;
192 bool support_get_mode;
199 void scanString(std::string& str,
bool is_vocab);
An interface for reading from a network connection.
An interface for writing to a network connection.
A dummy ConnectionWriter that consumes data without effect.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
yarp::conf::float64_t expectFloat64()
std::int64_t expectInt64()
std::int32_t expectInt32()
yarp::conf::float32_t expectFloat32()
std::int16_t expectInt16()
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
bool isValid()
Check if time is valid (non-zero).
std::string readString(bool *eof)
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
The main, catch-all namespace for YARP.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.