YARP
Yet Another Robot Platform
MonitorBinding.h
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 
9 #ifndef MONITORBINDING_INC
10 #define MONITORBINDING_INC
11 
13 #include <yarp/os/Property.h>
14 #include <yarp/os/Things.h>
15 
16 #include "MonitorEvent.h"
17 
19 {
20 
21 public:
22  virtual ~MonitorBinding();
23  virtual bool load(const yarp::os::Property& options) = 0;
24  virtual bool setParams(const yarp::os::Property& params) = 0;
25  virtual bool getParams(yarp::os::Property& params) = 0;
26 
27  virtual bool hasAccept() = 0;
28  virtual bool acceptData(yarp::os::Things& thing) = 0;
29 
30  virtual bool hasUpdate() = 0;
32 
33  virtual bool hasUpdateReply() = 0;
35 
36  virtual bool peerTrigged() = 0;
37  virtual bool setAcceptConstraint(const char* constraint) = 0;
38  virtual const char* getAcceptConstraint() = 0;
39  virtual bool canAccept() = 0;
40 
44  static MonitorBinding *create(const char* script_type);
45 
46 };
47 
48 #endif //MONITORBINDING_INC_
MonitorBinding
Definition: MonitorBinding.h:19
MonitorBinding::hasUpdate
virtual bool hasUpdate()=0
MonitorBinding::canAccept
virtual bool canAccept()=0
MonitorBinding::peerTrigged
virtual bool peerTrigged()=0
Things.h
MonitorBinding::setParams
virtual bool setParams(const yarp::os::Property &params)=0
yarp::os::Things
Base class for generic things.
Definition: Things.h:22
MonitorBinding::updateData
virtual yarp::os::Things & updateData(yarp::os::Things &thing)=0
MonitorBinding::getParams
virtual bool getParams(yarp::os::Property &params)=0
MonitorBinding::getAcceptConstraint
virtual const char * getAcceptConstraint()=0
MonitorBinding::hasUpdateReply
virtual bool hasUpdateReply()=0
MonitorBinding::load
virtual bool load(const yarp::os::Property &options)=0
Property.h
MonitorBinding::updateReply
virtual yarp::os::Things & updateReply(yarp::os::Things &thing)=0
MonitorBinding::~MonitorBinding
virtual ~MonitorBinding()
Class MonitorBinding.
MonitorBinding::create
static MonitorBinding * create(const char *script_type)
factory method
Definition: MonitorBinding.cpp:28
MonitorBinding::hasAccept
virtual bool hasAccept()=0
MonitorBinding::acceptData
virtual bool acceptData(yarp::os::Things &thing)=0
MonitorEvent.h
MonitorBinding::setAcceptConstraint
virtual bool setAcceptConstraint(const char *constraint)=0
yarp::os::Property
A class for storing options and configuration information.
Definition: Property.h:37
ConnectionReader.h