2002-09-23 19:55:10 +00:00
|
|
|
// system_mgr.cxx - manage aircraft systems.
|
|
|
|
// Written by David Megginson, started 2002.
|
|
|
|
//
|
|
|
|
// This file is in the Public Domain and comes with no warranty.
|
|
|
|
|
|
|
|
|
|
|
|
#include "system_mgr.hxx"
|
2002-09-24 15:24:04 +00:00
|
|
|
#include "electrical.hxx"
|
2002-09-28 20:48:53 +00:00
|
|
|
#include "pitot.hxx"
|
2002-09-27 18:27:58 +00:00
|
|
|
#include "static.hxx"
|
2002-09-24 14:51:37 +00:00
|
|
|
#include "vacuum.hxx"
|
2002-09-23 19:55:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
FGSystemMgr::FGSystemMgr ()
|
|
|
|
{
|
2003-05-27 19:25:27 +00:00
|
|
|
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) );
|
2002-09-23 19:55:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
FGSystemMgr::~FGSystemMgr ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// end of system_manager.cxx
|