6 #ifndef YARP_OS_IDL_WIREREADER_H
7 #define YARP_OS_IDL_WIREREADER_H
54 bool readBool(
bool& x);
56 bool readI8(std::int8_t& x);
58 bool readI16(std::int16_t& x);
60 bool readI32(std::int32_t& x);
62 bool readI64(std::int64_t& x);
68 bool readUI8(std::uint8_t& x);
70 bool readUI16(std::uint16_t& x);
72 bool readUI32(std::uint32_t& x);
74 bool readUI64(std::uint64_t& x);
120 bool readString(std::string& str,
bool* is_vocab =
nullptr);
122 bool readBinary(std::string& str);
126 bool readListHeader();
128 bool readListHeader(
int len);
130 bool readListReturn();
143 std::string readTag();
159 bool getMode()
const;
161 bool getIsVocab32()
const;
162 #ifndef YARP_NO_DEPRECATED
164 bool getIsVocab()
const {
165 return getIsVocab32();
169 const std::string& getString()
const;
171 #ifndef YARP_NO_DEPRECATED
173 bool readByte(std::int8_t& x)
179 bool readDouble(
double& x)
181 return readFloat64(x);
185 #ifndef YARP_NO_DEPRECATED
187 bool readVocab(std::int32_t& x) {
188 return readVocab32(x);
192 #ifndef YARP_NO_DEPRECATED
196 return static_cast<int>(expectInt32());
200 double expectDouble()
202 return static_cast<double>(expectFloat64());
211 bool flush_if_needed;
212 bool support_get_mode;
219 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...
std::string get_string(const std::string &key, bool *found=nullptr)
Read a string from an environment variable.
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.