YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
LocalReader.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_OS_LOCALREADER_H
8#define YARP_OS_LOCALREADER_H
9
10namespace yarp::os {
11class PortWriter;
12
16template <class T>
18{
19public:
20 virtual ~LocalReader() = default;
21
26 virtual bool acceptObject(T* obj, PortWriter* wrapper) = 0;
27
31 virtual bool forgetObject(T* obj, PortWriter* wrapper) = 0;
32};
33
34} // namespace yarp::os
35
36#endif // YARP_OS_LOCALREADER_H
A mini-server for performing network communication in the background.
Under development.
Definition LocalReader.h:18
virtual bool acceptObject(T *obj, PortWriter *wrapper)=0
Send object obj; expect callback to wrapper when obj is no longer in use.
virtual ~LocalReader()=default
virtual bool forgetObject(T *obj, PortWriter *wrapper)=0
Sender is no longer interested in getting callbacks.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition PortWriter.h:23
An interface to the operating system, including Port based communication.