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
16 #endif /*DOXYGEN_SHOULD_SKIP_THIS*/
17 
18 template <typename T>
20 {
21 }
22 
23 template <typename T>
25 {
26  YARP_UNUSED(datum);
28 }
29 
30 template <typename T>
32 {
33  YARP_UNUSED(reader);
34  onRead(datum);
35 }
36 
37 #ifdef _MSC_VER
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