|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
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 // Since YARP 3.0.0
75 bool readByte(std::int8_t& x)
81 bool readDouble(
double& x)
83 return readFloat64(x);
85 #endif // YARP_NO_DEPRECATED
127 #ifndef YARP_NO_DEPRECATED // Since YARP 3.0.0
131 return static_cast<int>(expectInt32());
135 double expectDouble()
137 return static_cast<double>(expectFloat64());
139 #endif // YARP_NO_DEPRECATED
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);
207 #endif // YARP_OS_IDL_WIREREADER_H
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
yarp::conf::float64_t expectFloat64()
yarp::conf::float32_t expectFloat32()
bool isValid()
Check if time is valid (non-zero).
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.
std::int64_t expectInt64()
std::string readString(bool *eof)
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
An interface for writing to a network connection.
A dummy ConnectionWriter that consumes data without effect.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
An interface for reading from a network connection.
std::int32_t expectInt32()
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
The main, catch-all namespace for YARP.
std::int16_t expectInt16()