YARP
Yet Another Robot Platform
LocalReader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_OS_LOCALREADER_H
11 #define YARP_OS_LOCALREADER_H
12 
13 namespace yarp {
14 namespace os {
15 class PortWriter;
16 
20 template <class T>
22 {
23 public:
24  virtual ~LocalReader() = default;
25 
30  virtual bool acceptObject(T* obj, PortWriter* wrapper) = 0;
31 
35  virtual bool forgetObject(T* obj, PortWriter* wrapper) = 0;
36 };
37 
38 } // namespace os
39 } // namespace yarp
40 
41 #endif // YARP_OS_LOCALREADER_H
yarp::os::LocalReader::~LocalReader
virtual ~LocalReader()=default
yarp::os::LocalReader::forgetObject
virtual bool forgetObject(T *obj, PortWriter *wrapper)=0
Sender is no longer interested in getting callbacks.
yarp::os::PortWriter
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition: PortWriter.h:27
yarp::os::LocalReader
Under development.
Definition: LocalReader.h:22
yarp::os::LocalReader::acceptObject
virtual bool acceptObject(T *obj, PortWriter *wrapper)=0
Send object obj; expect callback to wrapper when obj is no longer in use.
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18