7#ifndef YARP_OS_SEARCHABLE_H
8#define YARP_OS_SEARCHABLE_H
69 virtual bool check(
const std::string& key)
const = 0;
79 virtual bool check(
const std::string& key,
80 const std::string&
comment)
const;
90 virtual Value&
find(
const std::string& key)
const = 0;
115 Bottle& findGroup(
const std::string& key,
const std::string&
comment)
const;
142 virtual bool check(
const std::string& key,
144 const std::string&
comment =
"")
const;
156 virtual Value check(
const std::string& key,
157 const Value& fallback,
158 const std::string&
comment =
"")
const;
164 virtual bool isNull()
const;
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 base class for nested structures that can be searched.
Searchable(const Searchable &rhs)=default
Copy constructor.
Searchable(Searchable &&rhs) noexcept=default
Move constructor.
Searchable & operator=(Searchable &&rhs) noexcept=default
Move assignment operator.
virtual ~Searchable()
Destructor.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
virtual std::string toString() const =0
Return a standard text representation of the content of the object.
virtual Value & find(const std::string &key) const =0
Gets a value corresponding to a given keyword.
Searchable & operator=(const Searchable &rhs)=default
Copy assignment operator.
virtual Bottle & findGroup(const std::string &key) const =0
Gets a list corresponding to a given keyword.
A single value (typically within a Bottle).
An interface to the operating system, including Port based communication.