|
From: BERNDT, J. S. (J. (JSC-E. (LM) <jon...@js...> - 2001-08-31 15:41:51
|
In the JSBSim FGOutput class there are two functions which are nearly identical except one sends output to cout and the other sends output to an ofstream. I think it is possible to adapt the code so that only one output function is necessary. This would require the ability to set the output destination to either cout or a file. It would be something like this: destination_stream << "Altitude: " << "Position->Geth() << endl; where, depending on the situation, destination_strema refers to either cout or my ofstream file. I am not sure if this is possible. Does anyone know offhand if this can be done? Jon |