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);
107 return findGroup(key);
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());