24#ifndef DOXYGEN_SHOULD_SKIP_THIS
45 using Searchable::check;
46 using Searchable::findGroup;
59 explicit Value(std::int32_t x,
bool isVocab32 =
false);
73 explicit Value(
const std::string& str,
bool isVocab32 =
false);
80 Value(
void* data,
int length);
104 virtual bool isBool()
const;
111 virtual bool isInt8()
const;
118 virtual bool isInt16()
const;
125 virtual bool isInt32()
const;
132 virtual bool isInt64()
const;
139 virtual bool isFloat32()
const;
146 virtual bool isFloat64()
const;
152 virtual bool isString()
const;
158 virtual bool isList()
const;
165 virtual bool isDict()
const;
172 virtual bool isVocab32()
const;
179 virtual bool isBlob()
const;
187 virtual bool asBool()
const;
198 virtual std::int8_t asInt8()
const;
209 virtual std::int16_t asInt16()
const;
220 virtual std::int32_t asInt32()
const;
231 virtual std::int64_t asInt64()
const;
266 virtual std::string asString()
const;
273 virtual Bottle* asList()
const;
294 virtual const char* asBlob()
const;
301 virtual size_t asBlobLength()
const;
310 bool check(
const std::string& key)
const override;
313 Value& find(
const std::string& key)
const override;
316 Bottle& findGroup(
const std::string& key)
const override;
330 bool operator!=(
const Value&
alt)
const;
338 void fromString(
const char* str);
340 std::string
toString()
const override;
346 virtual Value* create()
const;
352 virtual Value* clone()
const;
358 virtual std::int32_t getCode()
const;
360 bool isNull()
const override;
362 virtual bool isLeaf()
const;
369 static Value* makeInt8(std::int8_t x);
376 static Value* makeInt16(std::int16_t x);
383 static Value* makeInt32(std::int32_t x);
390 static Value* makeInt64(std::int64_t x);
411 static Value* makeString(
const std::string& str);
450 static Value* makeBlob(
void* data,
int length);
456 static Value* makeList();
463 static Value* makeList(
const char* txt);
471 static Value* makeValue(
const std::string& txt);
478 static Value& getNullValue();
480#ifndef DOXYGEN_SHOULD_SKIP_THIS
bool operator==(const struct v4l2_control &left, const struct v4l2_control &right)
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.
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
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).
static Value * makeVocab32(char a, char b=0, char c=0, char d=0)
Create a vocabulary identifier Value.
static Value * makeVocab32(const std::string &str)
Create a vocabulary identifier Value If the string is longer than 4 characters, only the first 4 are ...
A single item in a Bottle.
NetInt32 encode(const std::string &str)
Convert a string into a vocabulary identifier.
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.