YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
TypedReaderCallback.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_TYPEDREADERCALLBACK_H
8#define YARP_OS_TYPEDREADERCALLBACK_H
9
10#include <yarp/os/api.h>
11
12namespace yarp::os {
13
14template <typename T>
15class TypedReader;
16
25template <typename T>
27{
28public:
32 virtual ~TypedReaderCallback();
33
39 virtual void onRead(T& datum);
40
51 virtual void onRead(T& datum, const yarp::os::TypedReader<T>& reader);
52};
53
54} // namespace yarp::os
55
57
58
59#endif // YARP_OS_TYPEDREADERCALLBACK_H
A mini-server for performing network communication in the background.
A callback for typed data from a port.
virtual void onRead(T &datum)
Callback method.
An interface to the operating system, including Port based communication.