17 #ifndef DOXYGEN_SHOULD_SKIP_THIS
18 yarp::os::SearchReport::SearchReport() :
28 yarp::os::SearchMonitor::~SearchMonitor() =
default;
41 const std::string& comment)
const
43 if (getMonitor() !=
nullptr && !comment.empty()) {
46 report.value = comment;
47 report.isComment =
true;
48 reportToMonitor(report);
60 const std::string& comment)
const
62 if (getMonitor() !=
nullptr && !comment.empty()) {
63 yarp::os::SearchReport report;
65 report.value = comment;
66 report.isComment =
true;
67 reportToMonitor(report);
69 if (getMonitor() !=
nullptr) {
70 yarp::os::SearchReport report;
73 report.isDefault =
true;
74 reportToMonitor(report);
85 const std::string& comment)
const
87 if (getMonitor() !=
nullptr && !comment.empty()) {
88 yarp::os::SearchReport report;
90 report.value = comment;
91 report.isComment =
true;
92 reportToMonitor(report);
98 const std::string& comment)
const
100 if (getMonitor() !=
nullptr && !comment.empty()) {
101 yarp::os::SearchReport report;
103 report.value = comment;
104 report.isComment =
true;
105 reportToMonitor(report);
115 #ifndef DOXYGEN_SHOULD_SKIP_THIS
117 void yarp::os::Searchable::setMonitor(yarp::os::SearchMonitor* monitor,
const char* context)
119 this->monitor = monitor;
120 this->monitorContext = context;
123 yarp::os::SearchMonitor* yarp::os::Searchable::getMonitor()
const
128 std::string yarp::os::Searchable::getMonitorContext()
const
130 return monitorContext;
133 void yarp::os::Searchable::reportToMonitor(
const yarp::os::SearchReport& report)
const
135 if (monitor !=
nullptr) {
136 monitor->report(report, monitorContext.c_str());
A simple collection of objects that can be described and transmitted in a portable way.
virtual bool isNull() const
Checks if the object is invalid.
virtual ~Searchable()
Destructor.
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.
Searchable()
Default constructor.
A single value (typically within a Bottle).
std::string toString() const override
Return a standard text representation of the content of the object.
bool isNull() const override
Checks if the object is invalid.
An interface to the operating system, including Port based communication.
std::string findGroup(const robotinterface::experimental::ParamList &list, const std::string &name)