@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>
*/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
~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
</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);
};
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%