| 1 | /* |
| 2 | * SPDX-License-Identifier: CC0-1.0 |
| 3 | * |
| 4 | * instrument_mgr.hxx - manage aircraft instruments. |
| 5 | * Written by David Megginson, started 2002. |
| 6 | * |
| 7 | * This file is in the Public Domain and comes with no warranty. |
| 8 | */ |
| 9 | |
| 10 | #pragma once |
| 11 | |
| 12 | #include <simgear/compiler.h> |
| 13 | #include <simgear/structure/subsystem_mgr.hxx> |
| 14 | |
| 15 | |
| 16 | /** |
| 17 | * Manage aircraft instruments. |
| 18 | * |
| 19 | * In the initial draft, the instruments present are hard-coded, but they |
| 20 | * will soon be configurable for individual aircraft. |
| 21 | */ |
| 22 | class FGInstrumentMgr : public SGSubsystemGroup |
| 23 | { |
| 24 | public: |
| 25 | FGInstrumentMgr (); |
| 26 | virtual ~FGInstrumentMgr (); |
| 27 | |
| 28 | // Subsystem API. |
| 29 | void init() override; |
| 30 | InitStatus incrementalInit() override; |
| 31 | |
| 32 | // Subsystem identification. |
| 33 | static const char* staticSubsystemClassId() { return "instrumentation"; } |
| 34 | |
| 35 | private: |
| 36 | bool build (SGPropertyNode* config_props, const SGPath& path); |
| 37 | |
| 38 | bool _explicitGps = false; |
| 39 | |
| 40 | std::vector<std::string> _instruments; |
| 41 | }; |