7#ifndef YARP_OS_PROPERTY_H
8#define YARP_OS_PROPERTY_H
43#ifndef YARP_NO_DEPRECATED
54 YARP_DEPRECATED_MSG("Use default constructor instead")
78 Property(std::initializer_list<std::pair<std::string, yarp::os::Value>> values);
95 bool check(
const std::string& key)
const override;
108 void put(
const std::string& key,
const std::string& value);
121 void put(
const std::string& key,
const Value& value);
134 void put(
const std::string& key,
Value* value);
147 void put(
const std::string& key,
int value);
160 void put(
const std::string& key,
double value);
172 Property& addGroup(
const std::string& key);
182 void unput(
const std::string& key);
185 Value& find(
const std::string& key)
const override;
219 void fromString(
const std::string& txt,
bool wipe =
true);
245 void fromCommand(
int argc,
char* argv[],
bool skipFirst =
true,
bool wipe =
true);
271 void fromCommand(
int argc,
const char* argv[],
bool skipFirst =
true,
bool wipe =
true);
294 void fromArguments(
const char* arguments,
bool wipe =
true);
372 bool fromConfigFile(
const std::string& fname,
bool wipe =
true);
387 bool fromConfigFile(
const std::string& fname,
401 bool fromConfigDir(
const std::string& dirname,
402 const std::string& section = std::string(),
412 void fromConfig(
const char* txt,
bool wipe =
true);
426 void fromConfig(
const char* txt,
439 void fromQuery(
const char* url,
444 std::string
toString()
const override;
452#ifndef DOXYGEN_SHOULD_SKIP_THIS
A simple collection of objects that can be described and transmitted in a portable way.
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.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
virtual Bottle & findGroup(const std::string &key) const =0
Gets a list corresponding to a given keyword.
A single value (typically within a Bottle).
std::string toString(const T &value)
convert an arbitrary type to string.
An interface to the operating system, including Port based communication.
std::string findGroup(const robotinterface::ParamList &list, const std::string &name)
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)