#define _ENVIRONMENT_CTRL_HXX
#include <simgear/compiler.h>
+#include <simgear/structure/subsystem_mgr.hxx>
+#include <simgear/environment/metar.hxx>
#ifdef SG_HAVE_STD_INCLUDES
# include <cmath>
class SGPropertyNode;
-#include <Main/fgfs.hxx>
-
#include "environment.hxx"
/**
* Interface to control environment information for a specific location.
*/
-class FGEnvironmentCtrl : public FGSubsystem
+class FGEnvironmentCtrl : public SGSubsystem
{
public:
};
+\f
+/**
+ * Interplation controller using the SGMetar class
+ */
+class FGMetarEnvironmentCtrl : public FGEnvironmentCtrl
+{
+public:
+ FGMetarEnvironmentCtrl ();
+ virtual ~FGMetarEnvironmentCtrl ();
+
+ virtual void init ();
+ virtual void reinit ();
+ virtual void update (double delta_time_sec);
+
+ virtual void setEnvironment (FGEnvironment * environment);
+
+private:
+ FGInterpolateEnvironmentCtrl *env;
+
+ char *_icao;
+ void fetch_data (const char *icao);
+};
+
#endif // _ENVIRONMENT_CTRL_HXX