YARP
Yet Another Robot Platform
TypedReaderCallback-inl.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_INL_H
11
#define YARP_OS_TYPEDREADERCALLBACK_INL_H
12
13
14
#ifndef DOXYGEN_SHOULD_SKIP_THIS
15
YARP_os_API
void
typedReaderMissingCallback
();
16
#endif
/*DOXYGEN_SHOULD_SKIP_THIS*/
17
18
template
<
typename
T>
19
yarp::os::TypedReaderCallback<T>::~TypedReaderCallback
()
20
{
21
}
22
23
template
<
typename
T>
24
void
yarp::os::TypedReaderCallback<T>::onRead
(T& datum)
25
{
26
YARP_UNUSED
(datum);
27
typedReaderMissingCallback
();
28
}
29
30
template
<
typename
T>
31
void
yarp::os::TypedReaderCallback<T>::onRead
(T& datum,
const
yarp::os::TypedReader<T>
& reader)
32
{
33
YARP_UNUSED
(reader);
34
onRead(datum);
35
}
36
37
#ifdef _MSC_VER
38
template
class
YARP_os_API
yarp::os::TypedReaderCallback<yarp::os::Bottle>
;
39
#endif
40
41
#endif // YARP_OS_TYPEDREADERCALLBACK_INL_H
yarp::os::TypedReader
A base class for sources of typed data.
Definition:
TypedReader.h:26
typedReaderMissingCallback
void typedReaderMissingCallback()
Definition:
PortReaderBufferBase.cpp:628
yarp::os::TypedReaderCallback< yarp::os::Bottle >
YARP_os_API
#define YARP_os_API
Definition:
api.h:19
YARP_UNUSED
#define YARP_UNUSED(var)
Definition:
api.h:159
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
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
TypedReaderCallback-inl.h
Generated on Sun Jan 3 2021 02:46:25 for YARP by
1.8.20