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 isVocab32()
const;
173 virtual bool isVocab64()
const;
180 virtual bool isBlob()
const;
188 virtual bool asBool()
const;
199 virtual std::int8_t asInt8()
const;
210 virtual std::int16_t asInt16()
const;
221 virtual std::int32_t asInt32()
const;
232 virtual std::int64_t asInt64()
const;
273 virtual std::string asString()
const;
280 virtual Bottle* asList()
const;
287 virtual const char* asBlob()
const;
294 virtual size_t asBlobLength()
const;
303 bool check(
const std::string& key)
const override;
306 Value& find(
const std::string& key)
const override;
309 Bottle& findGroup(
const std::string& key)
const override;
323 bool operator!=(
const Value&
alt)
const;
331 void fromString(
const char* str);
333 std::string
toString()
const override;
339 virtual Value* create()
const;
345 virtual Value* clone()
const;
351 virtual std::int32_t getCode()
const;
353 bool isNull()
const override;
355 virtual bool isLeaf()
const;
362 static Value* makeInt8(std::int8_t x);
369 static Value* makeInt16(std::int16_t x);
376 static Value* makeInt32(std::int32_t x);
383 static Value* makeInt64(std::int64_t x);
404 static Value* makeString(
const std::string& str);
443 static Value* makeBlob(
void* data,
int length);
449 static Value* makeList();
456 static Value* makeList(
const char* txt);
464 static Value* makeValue(
const std::string& txt);
471 static Value& getNullValue();
473#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 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.