Generated C++ Decode Method Format and Calling Parameters

Generated decode functions are invoked through the class interface by calling the base class Decode or DecodeFrom methods. The calling sequence for this method is as follows:

   status = <object>.Decode ();

In this definition, <object> is an object of the class generated for the given production.

An OSXMLDecodeBuffer object must be passed to the <object> constructor prior to decoding. This is where the message stream containing the XML document to be decoded is specified. Several constructors are available allowing the specification of XML input from a file, memory buffer, or another stream.

The function result variable status returns the status of the decode operation. The return status will be zero if decoding is successful or a negative value if an error occurs. Return status values are documented in the C/C++ Common Functions Reference Manual and in the rtxErrCodes.h include file.