#include "FGFDMExec.h"
#ifndef FGFS
-# if defined(sgi) && !defined(__GNUC__)
+# if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
# include <iomanip.h>
# else
# include <iomanip>
# include STL_IOMANIP
#endif
+namespace JSBSim {
+
static const char *IdSrc = "$Id$";
static const char *IdHdr = ID_FACTORGROUP;
{
FDMExec = fdmex;
totalValue = 0;
+ IsFactor = true;
Debug(0);
}
totalValue += sum[i]->TotalValue();
SDtotal += sum[i]->GetSD();
}
- //cout << totalValue << " " << FGCoefficient::TotalValue() << endl;
totalValue *= FGCoefficient::TotalValue();
SDtotal *= FGCoefficient::GetSD();
Debug(2);
return totalValue;
}
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+
+void FGFactorGroup::bind(FGPropertyManager* parent)
+{
+ unsigned i;
+ node=parent->GetNode(name,true);
+ node->SetString("description",description);
+ FGCoefficient::bind(node);
+ for (i=0; i < sum.size(); i++) {
+ sum[i]->bind(node);
+ }
+ node=(FGPropertyManager*)node->getParent();
+
+}
+
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+
+void FGFactorGroup::unbind(void)
+{
+ unsigned i;
+ FGCoefficient::unbind();
+ for (i=0; i < sum.size(); i++) {
+ sum[i]->unbind();
+ }
+}
+
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
// The bitmasked value choices are as follows:
// unset: In this case (the default) JSBSim would only print
}
}
+}