1
0
Fork 0
flightgear/src/Instrumentation/instrument_mgr.hxx
ThorstenB f8b689c040 Allow instruments/systems to reset on sim reset
so they can instantly adjust to the changed environment.
(Not fully working yet, since some environment settings, like environemnt
pressure/temperature, still changes slowly after a sim reset - instead of
immediately jumping to the new setting. Also, METAR sometimes arrives too
late...).
2012-09-19 20:57:52 +02:00

46 lines
948 B
C++

// instrument_mgr.hxx - manage aircraft instruments.
// Written by David Megginson, started 2002.
//
// This file is in the Public Domain and comes with no warranty.
#ifndef __INSTRUMENT_MGR_HXX
#define __INSTRUMENT_MGR_HXX 1
#ifndef __cplusplus
# error This library requires C++
#endif
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <simgear/compiler.h>
#include <simgear/structure/subsystem_mgr.hxx>
/**
* Manage aircraft instruments.
*
* In the initial draft, the instruments present are hard-coded, but they
* will soon be configurable for individual aircraft.
*/
class FGInstrumentMgr : public SGSubsystemGroup
{
public:
FGInstrumentMgr ();
virtual ~FGInstrumentMgr ();
virtual void init();
virtual InitStatus incrementalInit();
private:
bool build (SGPropertyNode* config_props);
bool _explicitGps;
std::vector<std::string> _instruments;
};
#endif // __INSTRUMENT_MGR_HXX