| 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 | #include <simgear/props/props.hxx> |
| 20 | #include <simgear/structure/subsystem_mgr.hxx> |
| 21 | |
| 22 | |
| 23 | /** |
| 24 | * Manage aircraft systems. |
| 25 | * |
| 26 | * Multiple aircraft systems can be configured for each aircraft. |
| 27 | */ |
| 28 | class FGSystemMgr : public SGSubsystemGroup |
| 29 | { |
| 30 | public: |
| 31 | FGSystemMgr (); |
| 32 | virtual ~FGSystemMgr (); |
| 33 | |
| 34 | // Subsystem identification. |
| 35 | static const char* staticSubsystemClassId() { return "systems"; } |
| 36 | |
| 37 | bool build (SGPropertyNode* config_props); |
| 38 | }; |
| 39 | |
| 40 | #endif // __SYSTEM_MGR_HXX |