9 #ifndef PORTMONITOR_INC
10 #define PORTMONITOR_INC
83 return "portmonitor_carrier";
105 void lock()
const { mutex.lock(); }
132 mutable std::mutex mutex;
Manager for arbitration-aware inputs to a given port.
virtual ~PortMonitorGroup()
virtual bool acceptIncomingData(PortMonitor *source)
Allow to monitor and modify port data from Lua script Under development.
void getCarrierParams(yarp::os::Property ¶ms) const override
Get carrier configuration and deliver it by port administrative commands.
yarp::os::ConnectionReader & modifyIncomingData(yarp::os::ConnectionReader &reader) override
Modify incoming payload data, if appropriate.
Carrier * create() const override
Factory method.
PortMonitor & operator=(const PortMonitor &)=delete
const yarp::os::PortWriter & modifyOutgoingData(const yarp::os::PortWriter &writer) override
Modify outgoing payload data, if appropriate.
PortMonitor(const PortMonitor &)=delete
std::string getName() const override
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
std::string toString() const override
Get name of carrier.
PortMonitor(PortMonitor &&)=delete
yarp::os::PortReader & modifyReply(yarp::os::PortReader &reader) override
Modify reply payload data, if appropriate.
void setCarrierParams(const yarp::os::Property ¶ms) override
Configure carrier from port administrative commands.
bool configureFromProperty(yarp::os::Property &options) override
PortMonitor & operator=(PortMonitor &&)=delete
bool acceptIncomingData(yarp::os::ConnectionReader &reader) override
Determine whether incoming data should be accepted.
bool acceptOutgoingData(const yarp::os::PortWriter &writer) override
Determine whether outgoing data should be accepted.
MonitorBinding * getBinder()
bool configure(yarp::os::ConnectionState &proto) override
Class PortMonitor.
An interface for reading from a network connection.
The basic state of a connection - route, streams in use, etc.
A dummy connection to test yarp::os::Portable implementations.
void remove(const std::string &key, typename PR::peer_type *entity)
A starter class for implementing simple modifying carriers.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
A class for storing options and configuration information.
Base class for generic things.