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 OSRTBaseType {
      OSBOOL value;
      ...
   } ;