YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
MonitorObject.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7#include <yarp/os/Property.h>
8#include <yarp/os/Things.h>
9
11
13{
14 YARP_UNUSED(options);
15 return true;
16}
17
21
23{
24 YARP_UNUSED(params);
25 return false;
26}
27
29{
30 YARP_UNUSED(params);
31 return false;
32}
33
37
39{
40 YARP_UNUSED(thing);
41 return true;
42}
43
49
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 &params)
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 &params)
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.
Definition Property.h:33
Base class for generic things.
Definition Things.h:18
#define YARP_UNUSED(var)
Definition api.h:162