19 return options.
check(
"type",
Value(
"none")).asString() ==
"portmonitor";
48 if (!plugin.
open(settings)) {
62 return monitor->
create(options);
77 return monitor->
accept(thing);
83 return monitor->
update(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
virtual void trig()
This will be called when one of the peer connections to the same import port receives data.
virtual yarp::os::Things & updateReply(yarp::os::Things &thing)
The updateReply makes it possible to modify a reply from a port when the portmonitor object is attach...
virtual bool setparam(const yarp::os::Property ¶ms)
This will be called when the portmonitor carrier parameters are set via YARP admin port.
virtual yarp::os::Things & update(yarp::os::Things &thing)
After data get accpeted in the accept() callback, an instance of that is given to the update function...
virtual bool getparam(yarp::os::Property ¶ms)
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
virtual void destroy()
This will be called when the portmonitor object destroyes.
virtual bool accept(yarp::os::Things &thing)
This will be called when the data reach the portmonitor object.
virtual bool create(const yarp::os::Property &options)
This will be called when the dll is properly loaded by the portmonitor carrier.
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.