19 return options.
check(
"type",
Value(
"none")).asString() ==
"portmonitor";
48 if (!plugin.
open(settings)) {
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.
bool open(SharedLibraryClassFactory< T > &factory)
Construct an instance using the specified factory.
virtual bool close()
Destroy an instance if one has been created.
bool isValid() const
Check whether a valid instance has been created.
std::string getBaseClassName() const
Get the base type associated with this factory.
std::string getClassName() const
Get the type associated with this factory.
std::string getName() const
Get the name associated with this factory.
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.
bool setSelector(YarpPluginSelector &selector)
Use a selector to find a plugin or plugins.
void setLibraryMethodName(const std::string &dll_name, const std::string &fn_name)
Set the name of the library to load and the method name to use as a factory.
void setPluginName(const std::string &name)
Set the name of the plugin to load.
std::string getMethodName() const
void setClassInfo(const std::string &class_name, const std::string &baseclass_name)
Set the information about the class and the base class constructed by this plugin.
SharedLibraryClassFactory< T > * getFactory() const
bool open(YarpPluginSettings &settings)
Load a library and prepare an object factory, based on the hints supplied.
An interface to the operating system, including Port based communication.