Hi The enclosed patch will enable FlightGear users to dynamically modify existing, or add new protocol separators (for variables and lines) to XML configurable ASCII protocols by editing a file in their base package, rather than having to recompile fgfs, it will basically replace the hardcoded separators in $FG_SRC/Network/generic.cxx.
The patch has been created against the current code from CVS. regards M.
<?xml version="1.0"?> <PropertyList> <!-- This will allow users to dynamically modify (or add) separators for ASCII based XML configurable protocols by editing their base package - rather than forcing them to re-compile fgfs for such minor changes. This file will be used to retrieve separators for *variables*, as well as *lines* at RUNTIME. The details are implemented in $FG_SRC/Network/generic.cxx, specifically in these two methods: void FGGeneric::loadSeparators(void) // loads this XML file std::string FGGeneric::resolveSeparator(std::string) // returns any match --> <ascii-separator> <!-- aliased name --> <alias>newline</alias> <!-- escape code --> <esc-seq>\n</esc-seq> </ascii-separator> <ascii-separator> <!-- aliased name --> <alias>tab</alias> <!-- escape code --> <esc-seq>\t</esc-seq> </ascii-separator> <ascii-separator> <!-- aliased name --> <alias>space</alias> <!-- escape code --> <esc-seq> </esc-seq> </ascii-separator> <ascii-separator> <!-- aliased name --> <alias>formfeed</alias> <!-- escape code --> <esc-seq>\f</esc-seq> </ascii-separator> <ascii-separator> <!-- aliased name --> <alias>carriagereturn</alias> <!-- escape code --> <esc-seq>\r</esc-seq> </ascii-separator> <ascii-separator> <!-- aliased name --> <alias>verticaltab</alias> <!-- escape code --> <esc-seq>\v</esc-seq> </ascii-separator> <ascii-separator> <!-- aliased name --> <alias>comma</alias> <!-- escape code --> <esc-seq>,</esc-seq> </ascii-separator> </PropertyList>
README.Protocol.diff
Description: Binary data
generic-patch.diff
Description: Binary data
_______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d