
C++ Mapping of SEQUENCE
As mentioned earlier, the C++ mapping is very similar to the C mapping. However, there are some important differences:
1. As with all C++ types, the prefix ASN1T_ is added before the typename to distinguish the data class from the control class (the control class contains an ASN1C_ prefix).
2. A default constructor is generated to initialize the structure elements. This constructor will zero out all elements and set any simple default values that may have been specified in the ASN.1 definition.
3. If the -genCopy command line switch was specified, a copy constructor will be generated to allow an instance of the data contained within a PDU control class object to be copied.
Objective Systems, Inc.102 Pickering Way, Suite #506Exton, 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 |