#endif
#include <simgear/compiler.h>
-
-#include <Main/fgfs.hxx>
-
-#include <vector>
-
-SG_USING_STD(vector);
+#include <simgear/props/props.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
/**
* Manage aircraft systems.
*
- * In the initial draft, the systems present are hard-coded, but they
- * will soon be configurable for individual aircraft.
+ * Multiple aircraft systems can be configured for each aircraft.
*/
-class FGSystemMgr : public FGSubsystem
+class FGSystemMgr : public SGSubsystemGroup
{
public:
FGSystemMgr ();
virtual ~FGSystemMgr ();
-
- virtual void init ();
- virtual void bind ();
- virtual void unbind ();
- virtual void update (double dt);
+ bool build ();
private:
- vector<FGSubsystem *> _systems;
+ SGPropertyNode *config_props;
+ bool enabled;
};