1
0
Fork 0
flightgear/src/Instrumentation/instrument_mgr.hxx

51 lines
928 B
C++
Raw Normal View History

// 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 <Main/fgfs.hxx>
#include <vector>
SG_USING_STD(vector);
/**
* 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 FGSubsystem
{
public:
FGInstrumentMgr ();
virtual ~FGInstrumentMgr ();
virtual void init ();
virtual void bind ();
virtual void unbind ();
virtual void update (double dt);
private:
vector<FGSubsystem *> _instruments;
};
#endif // __INSTRUMENT_MGR_HXX