]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGState.h
Moved JSBSim.hxx to src/FDM/JSBSim/
[flightgear.git] / src / FDM / JSBSim / FGState.h
index b3e7267e502638d4be7f9fd07fc1d318e3fcbf73..05c9a6025dccbff1065d2333a504f6ccacc1baf4 100644 (file)
@@ -211,6 +211,12 @@ public:
       */
   inline void Seta(double speed) { a = speed; }
 
+  /** Gets the name of the parameter given the index.
+      @param val_idx one of the enumerated JSBSim parameters.
+      @return the name of the parameter pointed to by the index.
+      */
+  string GetParameterName(eParam val_idx) {return paramdef[val_idx];}
+  
   /** Sets the current sim time.
       @param cur_time the current time
       @return the current time.
@@ -303,10 +309,6 @@ public:
   */
   void ReportState(void);
 
-
-  typedef map<eParam, string> ParamMap;
-  ParamMap paramdef;
-
 private:
   double a;                          // speed of sound
   double sim_time, dt;
@@ -340,6 +342,10 @@ private:
 
   typedef map<string, eParam> CoeffMap;
   CoeffMap coeffdef;
+
+  typedef map<eParam, string> ParamMap;
+  ParamMap paramdef;
+
   int ActiveEngine;
   void Debug(int from);
 };