YARP
Yet Another Robot Platform
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 
10 namespace yarp {
11 namespace os {
12 class PortWriter;
13 
17 template <class T>
19 {
20 public:
21  virtual ~LocalReader() = default;
22 
27  virtual bool acceptObject(T* obj, PortWriter* wrapper) = 0;
28 
32  virtual bool forgetObject(T* obj, PortWriter* wrapper) = 0;
33 };
34 
35 } // namespace os
36 } // namespace yarp
37 
38 #endif // YARP_OS_LOCALREADER_H
Under development.
Definition: LocalReader.h:19
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:24
The main, catch-all namespace for YARP.
Definition: dirs.h:16