TOC PREV NEXT INDEX


Boolean Type


The xsd:boolean type is mapped to a C unsigned char that is allowed to have the value zero for FALSE and any other value for TRUE. The general mapping is as follows:
XSD type:
<xsd:simpleType name="TypeName">
 
   <xsd:restriction base="xsd:boolean"/>
 
</xsd:simpleType>
 
 
Generated C code:
typedef OSBOOL TypeName;
 

 
Generated C++ code:
class TypeName : public OSBaseType {
 
   OSBOOL value;
 
   ...
 
} ;
 


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