TOC PREV NEXT INDEX


Real Number Types


XSD defines the following types that are mapped to the C double type:
float
double
decimal
A double is always used because it provides the maximum precision to hold numbers for all of the types above.
The general mapping is as follows:
XSD type:
<xsd:simpleType name="TypeName">
 
   <restriction base="xsd:float"/>
 
</xsd:simpleType>
 
 
Generated C code:
typedef OSREAL TypeName;
 
Generated C++ code:
class TypeName : public OSBaseType {
OSREAL 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