#include <yarp/os/MonitorObject.h>
Definition at line 22 of file MonitorObject.h.
◆ ~MonitorObject()
yarp::os::MonitorObject::~MonitorObject |
( |
| ) |
|
|
virtualdefault |
◆ accept()
This will be called when the data reach the portmonitor object.
- Parameters
-
thing | An instance of yarp::os::Thing object which can be used to typecast the data to the correct type. |
- Returns
- returning false will avoid delivering data to an input port or transmitting through the output port
Definition at line 38 of file MonitorObject.cpp.
◆ create()
This will be called when the dll is properly loaded by the portmonitor carrier.
- Parameters
-
options | A set of useful information of the current connection which the monitor object is attached. |
- Returns
- Returning false will stop the portmonitor object to procced
Definition at line 12 of file MonitorObject.cpp.
◆ destroy()
void yarp::os::MonitorObject::destroy |
( |
| ) |
|
|
virtual |
This will be called when the portmonitor object destroyes.
Definition at line 18 of file MonitorObject.cpp.
◆ getparam()
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
- Parameters
-
- Returns
- Returns true of any parameter is available
Definition at line 28 of file MonitorObject.cpp.
◆ setparam()
This will be called when the portmonitor carrier parameters are set via YARP admin port.
- Parameters
-
- Returns
- Returns true if parameters are correctly set
Definition at line 22 of file MonitorObject.cpp.
◆ trig()
void yarp::os::MonitorObject::trig |
( |
| ) |
|
|
virtual |
This will be called when one of the peer connections to the same import port receives data.
- Note
- this is available only if the portmonitor object attached to the input port
Definition at line 34 of file MonitorObject.cpp.
◆ update()
After data get accpeted in the accept() callback, an instance of that is given to the update function where the data can be accessed and modified.
- Parameters
-
thing | An instance of yarp::os::Thing object which can be used to typecast the data to the correct type. |
- Returns
- An instance of modified data in form of Thing
Definition at line 44 of file MonitorObject.cpp.
◆ updateReply()
The updateReply makes it possible to modify a reply from a port when the portmonitor object is attached to a two-ways connection (e.g., RPC).
- Parameters
-
thing | An instance of yarp::os::Thing object which can be used to typecast the data to the correct type. |
- Returns
- An instance of modified data in form of Thing
Definition at line 50 of file MonitorObject.cpp.
The documentation for this class was generated from the following files: