YARP
Yet Another Robot Platform
MonitorObject.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
10 #include <yarp/os/Property.h>
11 #include <yarp/os/Things.h>
12 
14 
16 {
17  YARP_UNUSED(options);
18  return true;
19 }
20 
22 {
23 }
24 
26 {
27  YARP_UNUSED(params);
28  return false;
29 }
30 
32 {
33  YARP_UNUSED(params);
34  return false;
35 }
36 
38 {
39 }
40 
42 {
43  YARP_UNUSED(thing);
44  return true;
45 }
46 
48 {
49  YARP_UNUSED(thing);
50  return thing;
51 }
52 
54 {
55  YARP_UNUSED(thing);
56  return thing;
57 }
yarp::os::MonitorObject::setparam
virtual bool setparam(const yarp::os::Property &params)
This will be called when the portmonitor carrier parameters are set via Yarp admin port.
Definition: MonitorObject.cpp:25
Things.h
yarp::os::MonitorObject::getparam
virtual bool getparam(yarp::os::Property &params)
This will be called when the portmonitor carrier parameters are requested via Yarp admin port.
Definition: MonitorObject.cpp:31
yarp::os::Things
Base class for generic things.
Definition: Things.h:22
YARP_UNUSED
#define YARP_UNUSED(var)
Definition: api.h:159
yarp::os::MonitorObject::create
virtual bool create(const yarp::os::Property &options)
This will be called when the dll is properly loaded by the portmonitor carrier.
Definition: MonitorObject.cpp:15
yarp::os::MonitorObject::~MonitorObject
virtual ~MonitorObject()
yarp::os::MonitorObject::accept
virtual bool accept(yarp::os::Things &thing)
This will be called when the data reach the portmonitor object.
Definition: MonitorObject.cpp:41
Property.h
yarp::os::MonitorObject::trig
virtual void trig()
This will be called when one of the peer connections to the same import port receives data.
Definition: MonitorObject.cpp:37
MonitorObject.h
yarp::os::MonitorObject::updateReply
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...
Definition: MonitorObject.cpp:53
yarp::os::MonitorObject::update
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...
Definition: MonitorObject.cpp:47
yarp::os::Property
A class for storing options and configuration information.
Definition: Property.h:37
yarp::os::MonitorObject::destroy
virtual void destroy()
This will be called when the portmonitor object destroyes.
Definition: MonitorObject.cpp:21