44 #include "FGParameter.h" 45 #include "input_output/FGPropertyManager.h" 51 #define ID_TABLE "$Id: FGTable.h,v 1.15 2013/01/26 17:06:49 bcoconni Exp $" 257 double GetValue(
void)
const;
258 double GetValue(
double key)
const;
259 double GetValue(
double rowKey,
double colKey)
const;
260 double GetValue(
double rowKey,
double colKey,
double TableKey)
const;
287 inline double GetElement(
int r,
int c)
const {
return Data[r][c];}
290 double operator()(
unsigned int r,
unsigned int c)
const {
return GetElement(r, c);}
293 void SetRowIndexProperty(
FGPropertyNode *node) {lookupProperty[eRow] = node;}
294 void SetColumnIndexProperty(
FGPropertyNode *node) {lookupProperty[eColumn] = node;}
296 unsigned int GetNumRows()
const {
return nRows;}
300 std::string GetName(
void)
const {
return Name;}
303 enum type {tt1D, tt2D, tt3D} Type;
304 enum axis {eRow=0, eColumn, eTable};
306 FGPropertyNode_ptr lookupProperty[3];
308 std::vector <FGTable*> Tables;
309 unsigned int nRows, nCols, nTables, dimension;
310 int colCounter, rowCounter, tableCounter;
311 mutable int lastRowIndex, lastColumnIndex, lastTableIndex;
312 double** Allocate(
void);
317 unsigned int FindNumColumns(
const std::string&);
318 void Debug(
int from);
Class wrapper for property handling.
void operator<<(std::istream &)
Read the table in.
Represents various types of parameters.
FGTable(const FGTable &table)
This is the very important copy constructor.