Fawkes API  Fawkes Development Version
fountain_thread.h
1 
2 /***************************************************************************
3  * fountain_thread.h - Fountain main thread
4  *
5  * Created: Fri Nov 16 11:22:30 2007
6  * Copyright 2005-2007 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 _FIREVISION_APPS_FOUNTAIN_FOUNTAIN_THREAD_H_
24 #define _FIREVISION_APPS_FOUNTAIN_FOUNTAIN_THREAD_H_
25 
26 #include <aspect/configurable.h>
27 #include <aspect/logging.h>
28 #include <aspect/network.h>
29 #include <aspect/thread_producer.h>
30 #include <core/threading/thread.h>
31 
32 namespace fawkes {
33 class NetworkService;
34 }
35 namespace firevision {
36 class FuseServer;
37 }
38 
39 class FountainThread : public fawkes::Thread,
41  public fawkes::LoggingAspect,
42  public fawkes::NetworkAspect,
44 {
45 public:
48 
49  virtual void init();
50  virtual void finalize();
51  virtual void loop();
52 
53 private:
54  firevision::FuseServer *fuse_server_;
55  fawkes::NetworkService *service_;
56 };
57 
58 #endif
firevision::FuseServer
Definition: fuse_server.h:42
fawkes::ThreadProducerAspect
Definition: thread_producer.h:36
FountainThread
Definition: fountain_thread.h:38
FountainThread::loop
virtual void loop()
Code to execute in the thread.
Definition: fountain_thread.cpp:119
FountainThread::~FountainThread
~FountainThread()
Destructor.
Definition: fountain_thread.cpp:46
fawkes::NetworkService
Definition: service.h:41
fawkes
fawkes::LoggingAspect
Definition: logging.h:36
FountainThread::FountainThread
FountainThread()
Constructor.
Definition: fountain_thread.cpp:39
fawkes::Thread
Definition: thread.h:44
FountainThread::finalize
virtual void finalize()
Finalize the thread.
Definition: fountain_thread.cpp:107
fawkes::ConfigurableAspect
Definition: configurable.h:36
FountainThread::init
virtual void init()
Initialize the thread.
Definition: fountain_thread.cpp:58
fawkes::NetworkAspect
Definition: network.h:38