
Generated C++ Encode Method Format and Calling Parameters
When C++ code generation is specified using the -xml switch, the generated EncodeTo and DecodeFrom methods in the PDU control class are set up to encode complete XML documents including the start document header as well as namespace attributes in the main element tag.
Generated encode functions are invoked through the class interface by calling the base class Encode method. The calling sequence for this method is as follows:
stat = <object>.Encode ();In this definition, <object> is an object of the class generated for the given production. The function result variable stat returns the status value from the XML encode function. This status value will be zero if encoding was successful or a negative error status value if encoding fails. Return status values are defined in the rtxErrCodes.h include file.
Objective Systems, Inc.55 Dowlin Forge RoadExton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |