TOC PREV NEXT INDEX


BOOLEAN



The ASN.1 BOOLEAN type is converted into a C type named OSBOOL. In the global include file osSysTypes.h, OSBOOL is defined to be an "unsigned character".

      ASN.1 production:  	   <name> ::= BOOLEAN
 

 
      Generated C code:  	   typedef OSBOOL <name>;
 

 
      Generated C++ code:	   typedef OSBOOL ASN1T_<name>;
 

For example, if "B ::= [PRIVATE 10] BOOLEAN" was defined as an ASN.1 production, the generated C type definition would be "typedef OSBOOL B". Note that the tag information is not represented in the type definition. It is handled within the generated encode/decode functions.

The only difference between the C and C++ mapping is the addition of the `ASN1T_' prefix on the C++ type.



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