#include "system_mgr.hxx"
-#include "Vacuum/vacuum.hxx"
+#include "electrical.hxx"
+#include "pitot.hxx"
+#include "static.hxx"
+#include "vacuum.hxx"
FGSystemMgr::FGSystemMgr ()
{
- // NO-OP
+ set_subsystem( "electrical", new FGElectricalSystem );
+ set_subsystem( "pitot", new PitotSystem );
+ set_subsystem( "static", new StaticSystem );
+ set_subsystem( "vacuum-l", new VacuumSystem(0) );
+ set_subsystem( "vacuum-r", new VacuumSystem(1) );
}
FGSystemMgr::~FGSystemMgr ()
{
- for (int i = 0; i < _systems.size(); i++) {
- delete _systems[i];
- _systems[i] = 0;
- }
-}
-
-void
-FGSystemMgr::init ()
-{
- // TODO: replace with XML configuration
- _systems.push_back(new VacuumSystem);
-
- // Initialize the individual systems
- for (int i = 0; i < _systems.size(); i++)
- _systems[i]->init();
-}
-
-void
-FGSystemMgr::bind ()
-{
- // NO-OP
-}
-
-void
-FGSystemMgr::unbind ()
-{
- // NO-OP
-}
-
-void
-FGSystemMgr::update (double dt)
-{
- for (int i = 0; i < _systems.size(); i++)
- _systems[i]->update(dt);
}
// end of system_manager.cxx