
Atomic Simple Types
Atomic simple types include boolean, integer, double, decimal, and types derived from these base types. The classes generated for these types include a value member that can be assigned to directly. They also include a parameterized constructor that allows assignment through construction and an assignment operator that makes it possible to do assignment directly through the `=' sign without having to use the value member. This makes assignment compatible with the C case.
<xsd:simpleType name="EmployeeNumber"> <xsd:restriction base="xsd:integer"/> </xsd:simpleType>class EmployeeNumber : public OSBaseType { public: OSINT32 value; EmployeeNumber (); EmployeeNumber (OSINT32 value); EmployeeNumber& operator= (OSINT32 value);EmployeeNumber empno (33);EmployeeNumber empno; empno.value = 33;EmployeeNumber empno; empno = 33;
| Copyright © Objective Systems
2002-2005 This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included. |
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 |