]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/instrument_mgr.hxx
Added static port system and a new altimeter model connected to it.
[flightgear.git] / src / Instrumentation / instrument_mgr.hxx
1 // instrument_mgr.hxx - manage aircraft instruments.
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 __INSTRUMENT_MGR_HXX
8 #define __INSTRUMENT_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 instruments.
29  *
30  * In the initial draft, the instruments present are hard-coded, but they
31  * will soon be configurable for individual aircraft.
32  */
33 class FGInstrumentMgr : public FGSubsystem
34 {
35 public:
36
37     FGInstrumentMgr ();
38     virtual ~FGInstrumentMgr ();
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 *> _instruments;
47
48 };
49
50 #endif // __INSTRUMENT_MGR_HXX