YARP  2.3.70.1
Yet Another Robot Platform
yarp::os::MonitorObject Class Reference

#include <yarp/os/MonitorObject.h>

+ Inheritance diagram for yarp::os::MonitorObject:

Public Member Functions

virtual ~MonitorObject ()
 
virtual bool create (const yarp::os::Property &options)
 This will be called when the dll is properly loaded by the portmonitor carrier. More...
 
virtual void destroy ()
 This will be called when the portmonitor object destroyes. More...
 
virtual bool setparam (const yarp::os::Property &params)
 This will be called when the portmonitor carrier parameters are set via Yarp admin port. More...
 
virtual bool getparam (yarp::os::Property &params)
 This will be called when the portmonitor carrier parameters are requested via Yarp admin port. More...
 
virtual void trig ()
 This will be called when one of the peer connections to the same import port receives data. More...
 
virtual bool accept (yarp::os::Things &thing)
 This will be called when the data reach the portmonitor object. More...
 
virtual yarp::os::Thingsupdate (yarp::os::Things &thing)
 After data get accpeted in the accept() callback, an instance of that is given to the update fucntion where the data can be accessed and modified. More...
 
virtual yarp::os::ThingsupdateReply (yarp::os::Things &thing)
 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). More...
 

Detailed Description

Definition at line 21 of file MonitorObject.h.

Constructor & Destructor Documentation

◆ ~MonitorObject()

yarp::os::MonitorObject::~MonitorObject ( )
virtual

Definition at line 10 of file MonitorObject.cpp.

Member Function Documentation

◆ accept()

bool yarp::os::MonitorObject::accept ( yarp::os::Things thing)
virtual

This will be called when the data reach the portmonitor object.

Parameters
thingAn 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

Reimplemented in DepthImageConverter, and ZfpMonitorObject.

Definition at line 37 of file MonitorObject.cpp.

◆ create()

bool yarp::os::MonitorObject::create ( const yarp::os::Property options)
virtual

This will be called when the dll is properly loaded by the portmonitor carrier.

Parameters
optionsA set of useful information of the current connection which the monitor object is attached.
Returns
Returning false will stop the portmonitor object to procced

Reimplemented in DepthImageConverter, and ZfpMonitorObject.

Definition at line 14 of file MonitorObject.cpp.

◆ destroy()

void yarp::os::MonitorObject::destroy ( void  )
virtual

This will be called when the portmonitor object destroyes.

Reimplemented in DepthImageConverter, and ZfpMonitorObject.

Definition at line 19 of file MonitorObject.cpp.

◆ getparam()

bool yarp::os::MonitorObject::getparam ( yarp::os::Property params)
virtual

This will be called when the portmonitor carrier parameters are requested via Yarp admin port.

Parameters
paramsThe Property
Returns
Returns true of any parameter is available

Reimplemented in DepthImageConverter, and ZfpMonitorObject.

Definition at line 28 of file MonitorObject.cpp.

◆ setparam()

bool yarp::os::MonitorObject::setparam ( const yarp::os::Property params)
virtual

This will be called when the portmonitor carrier parameters are set via Yarp admin port.

Parameters
paramsThe Property
Returns
Returns true if parameters are correctly set

Reimplemented in DepthImageConverter, and ZfpMonitorObject.

Definition at line 23 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 33 of file MonitorObject.cpp.

◆ update()

yarp::os::Things & yarp::os::MonitorObject::update ( yarp::os::Things thing)
virtual

After data get accpeted in the accept() callback, an instance of that is given to the update fucntion where the data can be accessed and modified.

Parameters
thingAn 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

Reimplemented in DepthImageConverter, and ZfpMonitorObject.

Definition at line 42 of file MonitorObject.cpp.

◆ updateReply()

yarp::os::Things & yarp::os::MonitorObject::updateReply ( yarp::os::Things thing)
virtual

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
thingAn 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 47 of file MonitorObject.cpp.


The documentation for this class was generated from the following files: