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 <core/threading/thread.h>
29 #include <aspect/blocked_timing.h>
30 #include <aspect/logging.h>
31 #include <aspect/configurable.h>
32 #include <core/utils/refptr.h>
33 
34 #include <string>
35 #include <memory>
36 
37 namespace fawkes {
38  class KatanaInterface;
39 }
40 
42 : public fawkes::Thread,
44  public fawkes::LoggingAspect,
46 {
47  public:
49 
50  virtual void loop();
51 
52  /** Stub to see name in backtrace for easier debugging. @see Thread::run() */
53  protected: virtual void run() { Thread::run(); }
54 
55  private:
56  KatanaActThread *__act_thread;
57 };
58 
59 
60 #endif
Katana sensor thread.
Definition: sensor_thread.h:41
Fawkes library namespace.
virtual void run()
Code to execute in the thread.
Definition: thread.cpp:939
virtual void run()
Stub to see name in backtrace for easier debugging.
Definition: sensor_thread.h:53
Thread class encapsulation of pthreads.
Definition: thread.h:42
Thread aspect to use blocked timing.
Katana act thread.
Definition: act_thread.h:61
Thread aspect to log output.
Definition: logging.h:35
Thread aspect to access configuration data.
Definition: configurable.h:35