TOC PREV NEXT INDEX


C++ Code Generated for XSD Global Elements


Special classes called control classes are generated for global elements that are not referenced by any other type definitions. These are global elements that are not used in any other type definitions via the ref attribute (for example, <complexType name="SomeType" ref="SomeGlobalElement"/>.
The purpose of a control class is to act as a control interface for encoding or decoding complete XML documents or messages. This class allows a message buffer or stream object to be associated with an XSD type class. Once this association is made, methods can be invoked from within the class to serialize data to and from the type class and the buffer or stream.
A sample global element section is as follows:

class EXTERN personnelRecord_CC : public OSXSDGlobalElement {
 
protected:
 
   PersonnelRecord& mValue;
 

 
public:
 
personnelRecord_CC (PersonnelRecord& value);
 
personnelRecord_CC
 
(OSMessageBufferIF& msgbuf, PersonnelRecord& value);
 
   ~personnelRecord_CC();
 

 
   // standard encode/decode methods (defined in base class):
 
   // int encode ();
 
   // int decode ();
 

 
   // stream encode/decode methods:
 
   int encodeTo (OSMessageBufferIF& msgbuf);
 
   int decodeFrom (OSMessageBufferIF& msgbuf);
 

 
   void print (const char* name);
 
} ;
 


Objective Systems, Inc.

102 Pickering Way, Suite #506
Exton, 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
TOC PREV NEXT INDEX