19 return options.
check(
"type",
Value(
"none")).asString() ==
"portmonitor";
32 if (monitor.isValid()) {
43 settings.setPluginName(options.
find(
"filename").
asString());
44 if (!settings.setSelector(selector)) {
48 if (!plugin.open(settings)) {
52 monitor.open(*plugin.getFactory());
53 if (!monitor.isValid()) {
57 settings.setLibraryMethodName(plugin.getFactory()->getName(),
58 settings.getMethodName());
59 settings.setClassInfo(plugin.getFactory()->getClassName(),
60 plugin.getFactory()->getBaseClassName());
62 return monitor->create(options);
67 return monitor->setparam(params);
72 return monitor->getparam(params);
77 return monitor->accept(thing);
83 return monitor->update(thing);
88 return monitor->updateReply(thing);
100 if (constraint ==
"") {
yarp::os::Things & updateData(yarp::os::Things &thing) override
bool canAccept() override
bool peerTrigged() override
bool acceptData(yarp::os::Things &thing) override
bool setParams(const yarp::os::Property ¶ms) override
MonitorSharedLib()
Class MonitorSharedLib.
yarp::os::Things & updateReply(yarp::os::Things &thing) override
bool load(const yarp::os::Property &options) override
~MonitorSharedLib() override
bool getParams(yarp::os::Property ¶ms) override
A class for storing options and configuration information.
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
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.
Base class for generic things.
A single value (typically within a Bottle).
virtual std::string asString() const
Get string value.
Pick out a set of relevant plugins.
void scan()
Find plugin configuration files, and run [plugin] sections through the select method.
An interface to the operating system, including Port based communication.