|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_PROPERTY_H
11 #define YARP_OS_PROPERTY_H
47 #ifndef YARP_NO_DEPRECATED // Since YARP 3.3
82 Property(std::initializer_list<std::pair<std::string, yarp::os::Value>> values);
99 bool check(
const std::string& key)
const override;
112 void put(
const std::string& key,
const std::string& value);
125 void put(
const std::string& key,
const Value& value);
138 void put(
const std::string& key,
Value* value);
151 void put(
const std::string& key,
int value);
164 void put(
const std::string& key,
double value);
176 Property& addGroup(
const std::string& key);
186 void unput(
const std::string& key);
189 Value& find(
const std::string& key)
const override;
192 Bottle& findGroup(
const std::string& key)
const override;
223 void fromString(
const std::string& txt,
bool wipe =
true);
249 void fromCommand(
int argc,
char* argv[],
bool skipFirst =
true,
bool wipe =
true);
275 void fromCommand(
int argc,
const char* argv[],
bool skipFirst =
true,
bool wipe =
true);
298 void fromArguments(
const char* arguments,
bool wipe =
true);
376 bool fromConfigFile(
const std::string& fname,
bool wipe =
true);
391 bool fromConfigFile(
const std::string& fname,
405 bool fromConfigDir(
const std::string& dirname,
406 const std::string& section = std::string(),
416 void fromConfig(
const char* txt,
bool wipe =
true);
430 void fromConfig(
const char* txt,
443 void fromQuery(
const char* url,
448 std::string
toString()
const override;
456 #ifndef DOXYGEN_SHOULD_SKIP_THIS
460 #endif // DOXYGEN_SHOULD_SKIP_THIS
466 #endif // YARP_OS_PROPERTY_H
A simple collection of objects that can be described and transmitted in a portable way.
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.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
virtual Bottle & findGroup(const std::string &key) const =0
Gets a list corresponding to a given keyword.
An interface for writing to a network connection.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
An interface for reading from a network connection.
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
std::string toString(const T &value)
convert an arbitrary type to string.
The main, catch-all namespace for YARP.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
A single value (typically within a Bottle).
A class for storing options and configuration information.