]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGTable.h
Updated to match changes in radiostack.[ch]xx
[flightgear.git] / src / FDM / JSBSim / FGTable.h
index aa9258ee8be2749d281f2a6231b5e05585b683b0..cdee7d18667e0e22d9b2d0f3caa020af38050659 100644 (file)
@@ -65,6 +65,10 @@ CLASS DOCUMENTATION
     @version $Id$
     @see FGCoefficient
     @see FGPropeller
+    @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGTable.h?rev=HEAD&content-type=text/vnd.viewcvs-markup">
+         Header File </a>
+    @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGTable.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup">
+         Source File </a>
 */
 
 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -78,8 +82,8 @@ public:
   ~FGTable();
   FGTable(int nRows);
   FGTable(int nRows, int nCols);
-  float GetValue(float key);
-  float GetValue(float rowKey, float colKey);
+  double GetValue(double key);
+  double GetValue(double rowKey, double colKey);
   /** Read the table in.
       Data in the config file should be in matrix format with the row
       independents as the first column and the column independents in
@@ -92,17 +96,20 @@ public:
        </pre>
        */
   void operator<<(FGConfigFile&);
-  inline float GetElement(int r, int c) {return Data[r][c];}
+  FGTable& operator<<(const double n);
+  FGTable& operator<<(const int n);
+  inline double GetElement(int r, int c) {return Data[r][c];}
   void Print(void);
-  
+
 private:
   enum type {tt1D, tt2D} Type;
-  unsigned int rowCounter;
-  unsigned int colCounter;
-  float** Data;
+  double** Data;
   int nRows, nCols;
-  float** Allocate(void);
-  void Debug(void);
+  int colCounter;
+  int rowCounter;
+  int lastRowIndex, lastColumnIndex;
+  double** Allocate(void);
+  void Debug(int from);
 };
 
 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%