8 #ifndef YARP_OS_IMPL_BOTTLEIMPL_H
9 #define YARP_OS_IMPL_BOTTLEIMPL_H
21 class ConnectionReader;
22 class ConnectionWriter;
44 bool isInt8(
int index);
45 bool isInt16(
int index);
46 bool isInt32(
int index);
47 bool isInt64(
int index);
48 bool isFloat32(
int index);
49 bool isFloat64(
int index);
50 bool isString(
int index);
51 bool isList(
int index);
103 void fromString(
const std::string& line);
105 size_type size()
const;
110 void onCommencement();
112 const char* getBytes()
const;
113 size_t byteCount()
const;
115 void copyRange(
const BottleImpl* alt, size_type first = 0, size_type len = npos);
122 void fromBinary(
const char* text,
size_t len);
124 void specialize(std::int32_t subCode);
125 int getSpecialization();
126 void setNested(
bool nested);
128 std::int32_t subCode();
150 return get((
int)size() - 1);
162 static bool isComplete(
const char* txt);
169 bool checkIndex(size_type index)
const;
176 Value& findGroupBit(
const std::string& key)
const;
177 Value& findBit(
const std::string& key)
const;
187 void smartAdd(
const std::string& str);
A simple collection of objects that can be described and transmitted in a portable way.
A simple abstraction for a block of bytes.
An interface for reading from a network connection.
An interface for writing to a network connection.
A class for storing options and configuration information.
A base class for nested structures that can be searched.
A single value (typically within a Bottle).
virtual Value * clone() const
Create a copy of the value.
bool isNull() const override
Checks if the object is invalid.
A flexible data format for holding a bunch of numbers and strings.
void addFloat64(yarp::conf::float64_t x)
void addInt32(std::int32_t x)
void addVocab32(yarp::conf::vocab32_t x)
void addBit(yarp::os::Value *bit)
void addBit(const yarp::os::Value &bit)
void addInt8(std::int8_t x)
void addString(const std::string &text)
void addFloat32(yarp::conf::float32_t x)
static StoreNull & getNull()
yarp::os::Value & addBit(const char *str)
void addInt64(std::int64_t x)
void addInt16(std::int16_t x)
A single item in a Bottle.
A 32-bit floating point number item.
A 64-bit floating point number item.
std::string toString(const T &value)
convert an arbitrary type to string.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
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.