25#ifndef DOXYGEN_SHOULD_SKIP_THIS
46 using Searchable::check;
47 using Searchable::findGroup;
60 explicit Value(std::int32_t x,
bool isVocab32 =
false);
74 explicit Value(
const std::string& str,
bool isVocab32 =
false);
81 Value(
void* data,
int length);
105 virtual bool isBool()
const;
112 virtual bool isInt8()
const;
119 virtual bool isInt16()
const;
126 virtual bool isInt32()
const;
133 virtual bool isInt64()
const;
140 virtual bool isFloat32()
const;
147 virtual bool isFloat64()
const;
153 virtual bool isString()
const;
159 virtual bool isList()
const;
166 virtual bool isDict()
const;
173 virtual bool isVocab32()
const;
180 virtual bool isVocab64()
const;
187 virtual bool isBlob()
const;
195 virtual bool asBool()
const;
206 virtual std::int8_t asInt8()
const;
217 virtual std::int16_t asInt16()
const;
228 virtual std::int32_t asInt32()
const;
239 virtual std::int64_t asInt64()
const;
280 virtual std::string asString()
const;
287 virtual Bottle* asList()
const;
308 virtual const char* asBlob()
const;
315 virtual size_t asBlobLength()
const;
324 bool check(
const std::string& key)
const override;
327 Value& find(
const std::string& key)
const override;
330 Bottle& findGroup(
const std::string& key)
const override;
344 bool operator!=(
const Value&
alt)
const;
352 void fromString(
const char* str);
354 std::string
toString()
const override;
360 virtual Value* create()
const;
366 virtual Value* clone()
const;
372 virtual std::int32_t getCode()
const;
374 bool isNull()
const override;
376 virtual bool isLeaf()
const;
383 static Value* makeInt8(std::int8_t x);
390 static Value* makeInt16(std::int16_t x);
397 static Value* makeInt32(std::int32_t x);
404 static Value* makeInt64(std::int64_t x);
425 static Value* makeString(
const std::string& str);
464 static Value* makeBlob(
void* data,
int length);
470 static Value* makeList();
477 static Value* makeList(
const char* txt);
485 static Value* makeValue(
const std::string& txt);
492 static Value& getNullValue();
494#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 32 bit vocabulary identifier Value.
static Value * makeVocab32(const std::string &str)
Create a 32 bit vocabulary identifier Value If the string is longer than 4 characters,...
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.