YARP
Yet Another Robot Platform
TypedReaderCallback.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_TYPEDREADERCALLBACK_H
11
#define YARP_OS_TYPEDREADERCALLBACK_H
12
13
#include <
yarp/os/api.h
>
14
15
namespace
yarp
{
16
namespace
os {
17
18
template
<
typename
T>
19
class
TypedReader;
20
29
template
<
typename
T>
30
class
TypedReaderCallback
31
{
32
public
:
36
virtual
~TypedReaderCallback
();
37
43
virtual
void
onRead
(T& datum);
44
55
virtual
void
onRead
(T& datum,
const
yarp::os::TypedReader<T>
& reader);
56
};
57
58
}
// namespace os
59
}
// namespace yarp
60
61
#include <
yarp/os/TypedReaderCallback-inl.h
>
62
63
64
#endif // YARP_OS_TYPEDREADERCALLBACK_H
yarp::os::TypedReader
A base class for sources of typed data.
Definition:
TypedReader.h:26
api.h
yarp::os::TypedReaderCallback
A callback for typed data from a port.
Definition:
TypedReaderCallback.h:31
TypedReaderCallback-inl.h
yarp::os::TypedReaderCallback::~TypedReaderCallback
virtual ~TypedReaderCallback()
Destructor.
Definition:
TypedReaderCallback-inl.h:19
yarp::os::TypedReaderCallback::onRead
virtual void onRead(T &datum)
Callback method.
Definition:
TypedReaderCallback-inl.h:24
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
TypedReaderCallback.h
Generated on Sun Jan 3 2021 02:46:25 for YARP by
1.8.20