YARP
Yet Another Robot Platform
TypedReaderThread.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_TYPEDREADERTHREAD_H
11
#define YARP_OS_TYPEDREADERTHREAD_H
12
13
#include <
yarp/os/Thread.h
>
14
15
namespace
yarp
{
16
namespace
os {
17
18
template
<
typename
T>
19
class
TypedReader;
20
21
template
<
typename
T>
22
class
TypedReaderCallback;
23
24
template
<
typename
T>
25
class
TypedReaderThread
:
public
Thread
26
{
27
public
:
28
TypedReader<T>
*
reader
;
29
TypedReaderCallback<T>
*
callback
;
30
31
TypedReaderThread
();
32
33
TypedReaderThread
(
TypedReader<T>
&
reader
,
34
TypedReaderCallback<T>
&
callback
);
35
36
void
run
()
override
;
37
38
void
onStop
()
override
;
39
};
40
41
}
// namespace os
42
}
// namespace yarp
43
44
#include <
yarp/os/TypedReaderThread-inl.h
>
45
46
#endif // YARP_OS_TYPEDREADERTHREAD_H
yarp::os::TypedReaderThread
Definition:
TypedReaderThread.h:26
yarp::os::TypedReader
A base class for sources of typed data.
Definition:
TypedReader.h:26
yarp::os::TypedReaderThread::TypedReaderThread
TypedReaderThread()
Definition:
TypedReaderThread-inl.h:11
yarp::os::TypedReaderCallback
A callback for typed data from a port.
Definition:
TypedReaderCallback.h:31
yarp::os::Thread
An abstraction for a thread of execution.
Definition:
Thread.h:25
yarp::os::TypedReaderThread::callback
TypedReaderCallback< T > * callback
Definition:
TypedReaderThread.h:29
Thread.h
yarp::os::TypedReaderThread::onStop
void onStop() override
Call-back, called while halting the thread (before join).
Definition:
TypedReaderThread-inl.h:39
yarp::os::TypedReaderThread::reader
TypedReader< T > * reader
Definition:
TypedReaderThread.h:28
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::os::TypedReaderThread::run
void run() override
Main body of the new thread.
Definition:
TypedReaderThread-inl.h:27
TypedReaderThread-inl.h
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
TypedReaderThread.h
Generated on Sun Jan 3 2021 02:46:25 for YARP by
1.8.20