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
24template <typename T>
26{
27public:
31 virtual ~TypedReaderCallback();
32
38 virtual void onRead(T& datum);
39
50 virtual void onRead(T& datum, const yarp::os::TypedReader<T>& reader);
51};
52
53} // namespace yarp::os
54
56
57
58#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.