YARP
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 function 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 25 of file MonitorObject.h.

Constructor & Destructor Documentation

◆ ~MonitorObject()

yarp::os::MonitorObject::~MonitorObject ( )
virtualdefault

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 ZfpMonitorObject, SegmentationImageConverter, DepthImageConverter, and DepthImageConverter.

Definition at line 41 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 ZfpMonitorObject, SegmentationImageConverter, DepthImageConverter, and DepthImageConverter.

Definition at line 15 of file MonitorObject.cpp.

◆ destroy()

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

This will be called when the portmonitor object destroyes.

Reimplemented in ZfpMonitorObject, SegmentationImageConverter, DepthImageConverter, and DepthImageConverter.

Definition at line 21 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 ZfpMonitorObject, SegmentationImageConverter, DepthImageConverter, and DepthImageConverter.

Definition at line 31 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 ZfpMonitorObject, SegmentationImageConverter, DepthImageConverter, and DepthImageConverter.

Definition at line 25 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 37 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 function 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 ZfpMonitorObject, SegmentationImageConverter, DepthImageConverter, and DepthImageConverter.

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


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