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
32namespace fawkes {
33class NetworkService;
34}
35namespace firevision {
36class FuseServer;
37}
38
44{
45public:
48
49 virtual void init();
50 virtual void finalize();
51 virtual void loop();
52
53private:
54 firevision::FuseServer *fuse_server_;
55 fawkes::NetworkService *service_;
56};
57
58#endif
Fountain main thread.
virtual void finalize()
Finalize the thread.
~FountainThread()
Destructor.
virtual void loop()
Code to execute in the thread.
virtual void init()
Initialize the thread.
FountainThread()
Constructor.
Thread aspect to access configuration data.
Definition: configurable.h:33
Thread aspect to log output.
Definition: logging.h:33
Thread aspect for network communication.
Definition: network.h:35
Representation of a service announced or found via service discovery (i.e.
Definition: service.h:38
Aspect for thread producing threads.
Thread class encapsulation of pthreads.
Definition: thread.h:46
FireVision FUSE protocol server.
Definition: fuse_server.h:44
Fawkes library namespace.