YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
MonitorSharedLib.h
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
6#ifndef MONITOR_SHAREDLIB_INC
7#define MONITOR_SHAREDLIB_INC
8
9#include "MonitorBinding.h"
10
14#include <yarp/os/YarpPlugin.h>
15
16#include <string>
17
19{
20
21public:
23 ~MonitorSharedLib() override;
24
25 bool load(const yarp::os::Property &options) override;
26 bool setParams(const yarp::os::Property& params) override;
27 bool getParams(yarp::os::Property& params) override;
28
29 bool acceptData(yarp::os::Things &thing) override;
32
33 bool peerTrigged() override;
34 bool canAccept() override;
35
36 bool setAcceptConstraint(const char* constraint) override {
37 if(!constraint) {
38 return false;
39 }
40 MonitorSharedLib::constraint = constraint;
41 return true;
42 }
43
44 const char* getAcceptConstraint() override {
45 return constraint.c_str();
46 }
47
48 bool hasAccept() override { return true; }
49 bool hasUpdate() override { return true; }
50 bool hasUpdateReply() override { return true; }
51
52private:
53 std::string constraint;
57};
58
59#endif //_MONITOR_SHAREDLIB_INC_
bool setAcceptConstraint(const char *constraint) override
yarp::os::Things & updateData(yarp::os::Things &thing) override
bool canAccept() override
bool hasUpdate() override
const char * getAcceptConstraint() override
bool peerTrigged() override
bool acceptData(yarp::os::Things &thing) override
bool setParams(const yarp::os::Property &params) override
MonitorSharedLib()
Class MonitorSharedLib.
yarp::os::Things & updateReply(yarp::os::Things &thing) override
bool load(const yarp::os::Property &options) override
bool hasAccept() override
~MonitorSharedLib() override
bool getParams(yarp::os::Property &params) override
bool hasUpdateReply() override
A mini-server for performing network communication in the background.
A class for storing options and configuration information.
Definition Property.h:33
Base class for generic things.
Definition Things.h:18
Collect hints for finding a particular plugin.