7 #ifndef YARP_OS_PROPERTY_H
8 #define YARP_OS_PROPERTY_H
44 #ifndef YARP_NO_DEPRECATED
55 YARP_DEPRECATED_MSG("Use default constructor instead")
79 Property(std::initializer_list<std::pair<std::string, yarp::os::Value>> values);
96 bool check(
const std::string& key)
const override;
109 void put(
const std::string& key,
const std::string& value);
122 void put(
const std::string& key,
const Value& value);
135 void put(
const std::string& key,
Value* value);
148 void put(
const std::string& key,
int value);
161 void put(
const std::string& key,
double value);
173 Property& addGroup(
const std::string& key);
183 void unput(
const std::string& key);
186 Value& find(
const std::string& key)
const override;
220 void fromString(
const std::string& txt,
bool wipe =
true);
246 void fromCommand(
int argc,
char* argv[],
bool skipFirst =
true,
bool wipe =
true);
272 void fromCommand(
int argc,
const char* argv[],
bool skipFirst =
true,
bool wipe =
true);
295 void fromArguments(
const char* arguments,
bool wipe =
true);
373 bool fromConfigFile(
const std::string& fname,
bool wipe =
true);
388 bool fromConfigFile(
const std::string& fname,
402 bool fromConfigDir(
const std::string& dirname,
403 const std::string& section = std::string(),
413 void fromConfig(
const char* txt,
bool wipe =
true);
427 void fromConfig(
const char* txt,
440 void fromQuery(
const char* url,
445 std::string
toString()
const override;
453 #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.
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)
The main, catch-all namespace for YARP.