Fawkes API
Fawkes Development Version
sensor_thread.h
1
2
/***************************************************************************
3
* sensor_thread.h - Katana plugin sensor thread
4
*
5
* Created: Fri Jun 12 14:56:50 2009
6
* Copyright 2006-2009 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#ifndef _PLUGINS_KATANA_SENSOR_THREAD_H_
24
#define _PLUGINS_KATANA_SENSOR_THREAD_H_
25
26
#include "act_thread.h"
27
28
#include <aspect/blocked_timing.h>
29
#include <aspect/configurable.h>
30
#include <aspect/logging.h>
31
#include <core/threading/thread.h>
32
#include <core/utils/refptr.h>
33
34
#include <memory>
35
#include <string>
36
37
namespace
fawkes
{
38
class
KatanaInterface;
39
}
40
41
class
KatanaSensorThread
:
public
fawkes::Thread
,
42
public
fawkes::BlockedTimingAspect
,
43
public
fawkes::LoggingAspect
,
44
public
fawkes::ConfigurableAspect
45
{
46
public
:
47
KatanaSensorThread
(
KatanaActThread
*act_thread);
48
49
virtual
void
loop
();
50
51
/** Stub to see name in backtrace for easier debugging. @see Thread::run() */
52
protected
:
53
virtual
void
54
run
()
55
{
56
Thread::run();
57
}
58
59
private
:
60
KatanaActThread
*act_thread_;
61
};
62
63
#endif
KatanaSensorThread::loop
virtual void loop()
Code to execute in the thread.
Definition:
sensor_thread.cpp:46
KatanaActThread
Definition:
act_thread.h:61
fawkes::BlockedTimingAspect
Definition:
blocked_timing.h:56
KatanaSensorThread
Definition:
sensor_thread.h:41
KatanaSensorThread::run
virtual void run()
Stub to see name in backtrace for easier debugging.
Definition:
sensor_thread.h:54
fawkes
fawkes::LoggingAspect
Definition:
logging.h:38
KatanaSensorThread::KatanaSensorThread
KatanaSensorThread(KatanaActThread *act_thread)
Constructor.
Definition:
sensor_thread.cpp:38
fawkes::Thread
Definition:
thread.h:45
fawkes::ConfigurableAspect
Definition:
configurable.h:38
src
plugins
katana
sensor_thread.h
Generated by
1.8.17