Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
run.h
1 
2 /***************************************************************************
3  * run.h - Fawkes run functions
4  *
5  * Created: Wed May 04 23:23:23 2011
6  * Copyright 2006-2011 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. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef __LIBS_BASEAPP_RUN_H_
25 #define __LIBS_BASEAPP_RUN_H_
26 
27 #include <baseapp/init_options.h>
28 
29 namespace fawkes {
30  class ArgumentParser;
31  class MultiLogger;
32  class NetworkLogger;
33  class BlackBoard;
34  class SQLiteConfiguration;
35  class FawkesMainThread;
36  class PluginManager;
37  class AspectManager;
38  class ThreadManager;
39  class FawkesNetworkManager;
40  class Clock;
41  class ConfigNetworkHandler;
42  class PluginNetworkHandler;
43 
44  namespace runtime {
45 #if 0 /* just to make Emacs auto-indent happy */
46  }
47 }
48 #endif
49 
50 extern ArgumentParser *argument_parser;
51 extern FawkesMainThread *main_thread;
52 extern MultiLogger *logger;
53 extern NetworkLogger *network_logger;
54 extern BlackBoard *blackboard;
55 extern SQLiteConfiguration *config;
56 extern Clock *clock;
57 extern PluginManager *plugin_manager;
58 extern AspectManager *aspect_manager;
59 extern ThreadManager *thread_manager;
60 extern FawkesNetworkManager *network_manager;
61 extern ConfigNetworkHandler *nethandler_config;
62 extern PluginNetworkHandler *nethandler_plugin;
63 
64 int init(int argc, char **argv);
65 int init(InitOptions options);
66 void run();
67 void cleanup();
68 void quit();
69 
70 void print_usage(const char *progname);
71 
72 } // end namespace runtime
73 } // end namespace fawkes
74 
75 
76 #endif