7#ifndef YARP_OS_PROPERTY_H
8#define YARP_OS_PROPERTY_H
34 using Searchable::check;
35 using Searchable::findGroup;
62 Property(std::initializer_list<std::pair<std::string, yarp::os::Value>> values);
79 bool check(
const std::string& key)
const override;
92 void put(
const std::string& key,
const std::string& value);
105 void put(
const std::string& key,
const Value& value);
118 void put(
const std::string& key,
Value* value);
131 void put(
const std::string& key,
int value);
144 void put(
const std::string& key,
double value);
156 Property& addGroup(
const std::string& key);
166 void unput(
const std::string& key);
169 Value& find(
const std::string& key)
const override;
172 Bottle& findGroup(
const std::string& key)
const override;
203 void fromString(
const std::string& txt,
bool wipe =
true);
229 void fromCommand(
int argc,
char* argv[],
bool skipFirst =
true,
bool wipe =
true);
255 void fromCommand(
int argc,
const char* argv[],
bool skipFirst =
true,
bool wipe =
true);
278 void fromArguments(
const char* arguments,
bool wipe =
true);
356 bool fromConfigFile(
const std::string&
fname,
bool wipe =
true);
371 bool fromConfigFile(
const std::string&
fname,
385 bool fromConfigDir(
const std::string&
dirname,
386 const std::string&
section = std::string(),
396 void fromConfig(
const char* txt,
bool wipe =
true);
410 void fromConfig(
const char* txt,
423 void fromQuery(
const char* url,
428 std::string
toString()
const override;
431#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.
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.