|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
11 #ifndef YARP_OS_IMPL_BOTTLEIMPL_H
12 #define YARP_OS_IMPL_BOTTLEIMPL_H
24 class ConnectionReader;
25 class ConnectionWriter;
47 bool isInt8(
int index);
48 bool isInt16(
int index);
49 bool isInt32(
int index);
50 bool isInt64(
int index);
51 bool isFloat32(
int index);
52 bool isFloat64(
int index);
53 bool isString(
int index);
54 bool isList(
int index);
106 void fromString(
const std::string& line);
108 size_type size()
const;
113 void onCommencement();
115 const char* getBytes()
const;
116 size_t byteCount()
const;
118 void copyRange(
const BottleImpl* alt, size_type first = 0, size_type len = npos);
125 void fromBinary(
const char* text,
size_t len);
127 void specialize(std::int32_t subCode);
128 int getSpecialization();
129 void setNested(
bool nested);
131 std::int32_t subCode();
153 return get((
int)size() - 1);
165 static bool isComplete(
const char* txt);
172 bool checkIndex(size_type index)
const;
179 Value& findGroupBit(
const std::string& key)
const;
180 Value& findBit(
const std::string& key)
const;
190 void smartAdd(
const std::string& str);
211 #endif // YARP_OS_IMPL_BOTTLEIMPL_H
A simple collection of objects that can be described and transmitted in a portable way.
A base class for nested structures that can be searched.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
A flexible data format for holding a bunch of numbers and strings.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.
virtual Value * clone() const
Create a copy of the value.
void addBit(const yarp::os::Value &bit)
void addString(const std::string &text)
void addInt16(std::int16_t x)
A single item in a Bottle.
void addVocab(std::int32_t x)
void addInt32(std::int32_t x)
yarp::os::Value & addBit(const char *str)
void addFloat32(yarp::conf::float32_t x)
void addInt8(std::int8_t x)
An interface for writing to a network connection.
A 32-bit floating point number item.
bool isNull() const override
Checks if the object is invalid.
A 64-bit floating point number item.
A simple abstraction for a block of bytes.
void addInt64(std::int64_t x)
An interface for reading from a network connection.
std::string toString(const T &value)
convert an arbitrary type to string.
The main, catch-all namespace for YARP.
void addBit(yarp::os::Value *bit)
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
A single value (typically within a Bottle).
void addFloat64(yarp::conf::float64_t x)
static StoreNull & getNull()
A class for storing options and configuration information.