]> git.mxchange.org Git - flightgear.git/blob - src/Systems/system_mgr.hxx
Go back to the simpler arrangement syntax of a map of vectors.
[flightgear.git] / src / Systems / system_mgr.hxx
1 // system_mgr.hxx - manage aircraft systems.
2 // Written by David Megginson, started 2002.
3 //
4 // This file is in the Public Domain and comes with no warranty.
5
6
7 #ifndef __SYSTEM_MGR_HXX
8 #define __SYSTEM_MGR_HXX 1
9
10 #ifndef __cplusplus
11 # error This library requires C++
12 #endif
13
14 #ifdef HAVE_CONFIG_H
15 #  include <config.h>
16 #endif
17
18 #include <simgear/compiler.h>
19
20 #include <Main/fgfs.hxx>
21
22 #include <vector>
23
24 SG_USING_STD(vector);
25
26
27 /**
28  * Manage aircraft systems.
29  *
30  * In the initial draft, the systems present are hard-coded, but they
31  * will soon be configurable for individual aircraft.
32  */
33 class FGSystemMgr : public FGSubsystem
34 {
35 public:
36
37     FGSystemMgr ();
38     virtual ~FGSystemMgr ();
39
40     virtual void init ();
41     virtual void bind ();
42     virtual void unbind ();
43     virtual void update (double dt);
44
45 private:
46     vector<FGSubsystem *> _systems;
47
48 };
49
50 #endif // __SYSTEM_MGR_HXX