8#ifndef YARP_OS_IMPL_BOTTLEIMPL_H
9#define YARP_OS_IMPL_BOTTLEIMPL_H
20class ConnectionReader;
21class ConnectionWriter;
45 bool isInt8(
int index);
46 bool isInt16(
int index);
47 bool isInt32(
int index);
48 bool isInt64(
int index);
49 bool isFloat32(
int index);
50 bool isFloat64(
int index);
51 bool isString(
int index);
52 bool isList(
int index);
104 void fromString(
const std::string& line);
106 size_type size()
const;
111 void onCommencement();
113 const char* getBytes()
const;
114 size_t byteCount()
const;
116 void copyRange(
const BottleImpl*
alt, size_type first = 0, size_type len = npos);
123 void fromBinary(
const char* text,
size_t len);
125 void specialize(std::int32_t subCode);
126 int getSpecialization();
127 void setNested(
bool nested);
129 std::int32_t subCode();
151 return get((
int)size() - 1);
163 static bool isComplete(
const char* txt);
170 bool checkIndex(size_type index)
const;
177 Value& findGroupBit(
const std::string& key)
const;
178 Value& findBit(
const std::string& key)
const;
188 void smartAdd(
const std::string& str);
std::string toString(const T &value)
convert an arbitrary type to string.
A simple collection of objects that can be described and transmitted in a portable way.
A mini-server for performing network communication in the background.
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).
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)
yarp::os::Value & addBit(const char *str)
static StoreNull & getNull()
void addFloat32(yarp::conf::float32_t x)
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.
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.