Debian Codegraph @

src/Cockpit/cockpitDisplayManager.hxx

raw symbols SCIP
1 // cockpitDisplayManager.hxx -- manage cockpit displays, typically
2 // rendered using a sub-camera or render-texture
3 //
4 // Copyright (C) 2012 James Turner [email protected]
5 //
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License as
8 // published by the Free Software Foundation; either version 2 of the
9 // License, or (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 #ifndef COCKPIT_DISPLAY_MGR_HXX
21 #define COCKPIT_DISPLAY_MGR_HXX 1
22
23 #include <simgear/compiler.h>
24
25 #include <vector>
26 #include <simgear/structure/subsystem_mgr.hxx>
27
28 class SGPropertyNode;
29
30 namespace flightgear
31 {
32
33 /**
34 * Manage aircraft displays.
35 */
36 class CockpitDisplayManager : public SGSubsystemGroup
37 {
38 public:
39 CockpitDisplayManager ();
40 virtual ~CockpitDisplayManager ();
41
42 // Subsystem API.
43 void init() override;
44 InitStatus incrementalInit() override;
45
46 // Subsystem identification.
47 static const char* staticSubsystemClassId() { return "cockpit-displays"; }
48
49 private:
50 bool build (SGPropertyNode* config_props);
51
52 std::vector<std::string> _displays;
53 };
54
55 } // of namespace lfightgear
56
57 #endif // COCKPIT_DISPLAY_MGR_HXX