From: Erik H. <eh...@us...> - 2016-08-20 08:04:13
|
Update of /cvsroot/jsbsim/JSBSim/utils/aeromatic++ In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10976 Modified Files: Aircraft.cpp aeromatic.cpp types.h version Log Message: Add some comments when logging to the parameter file for clearity, when possible Index: aeromatic.cpp =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/utils/aeromatic++/aeromatic.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** aeromatic.cpp 6 Jul 2016 07:44:56 -0000 1.9 --- aeromatic.cpp 20 Aug 2016 08:04:10 -0000 1.10 *************** *** 95,99 **** } if (log.is_open()) { ! log << input << endl; } } --- 95,104 ---- } if (log.is_open()) { ! log << input; ! if (param->get_type() != Aeromatic::PARAM_STRING && ! param->get_type() != Aeromatic::PARAM_BOOL) { ! log << std::setw(32-input.size()) << "; " << param->name(); ! } ! log << endl; } } Index: types.h =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/utils/aeromatic++/types.h,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** types.h 19 Aug 2016 10:20:42 -0000 1.22 --- types.h 20 Aug 2016 08:04:10 -0000 1.23 *************** *** 216,219 **** --- 216,220 ---- std::string get(); + enum ParamType get_type() { return ParamType(_ptype); } const char* get_units() { return _cvt_t[_utype].name[_convert]; Index: version =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/utils/aeromatic++/version,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** version 19 Aug 2016 10:20:42 -0000 1.20 --- version 20 Aug 2016 08:04:10 -0000 1.21 *************** *** 1 **** ! 3.3.6 --- 1 ---- ! 3.3.7 |