7#ifndef YARP_OS_PROPERTY_H
8#define YARP_OS_PROPERTY_H
35 using Searchable::check;
36 using Searchable::findGroup;
63 Property(std::initializer_list<std::pair<std::string, yarp::os::Value>>
values);
80 bool check(
const std::string& key)
const override;
93 void put(
const std::string& key,
const std::string& value);
106 void put(
const std::string& key,
const Value& value);
119 void put(
const std::string& key,
Value* value);
132 void put(
const std::string& key,
int value);
145 void put(
const std::string& key,
double value);
157 Property& addGroup(
const std::string& key);
167 void unput(
const std::string& key);
170 Value& find(
const std::string& key)
const override;
173 Bottle& findGroup(
const std::string& key)
const override;
204 void fromString(
const std::string& txt,
bool wipe =
true);
230 void fromCommand(
int argc,
char* argv[],
bool skipFirst =
true,
bool wipe =
true);
256 void fromCommand(
int argc,
const char* argv[],
bool skipFirst =
true,
bool wipe =
true);
279 void fromArguments(
const char* arguments,
bool wipe =
true);
357 bool fromConfigFile(
const std::string&
fname,
bool wipe =
true);
372 bool fromConfigFile(
const std::string&
fname,
386 bool fromConfigDir(
const std::string&
dirname,
387 const std::string&
section = std::string(),
397 void fromConfig(
const char* txt,
bool wipe =
true);
411 void fromConfig(
const char* txt,
424 void fromQuery(
const char* url,
429 std::string
toString()
const override;
437#ifndef DOXYGEN_SHOULD_SKIP_THIS
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).
An interface to the operating system, including Port based communication.