TOC PREV NEXT INDEX


Creation of Temporary Types



The rules for the generation of CHOICE temporary type variables are the same as they were for SEQUENCE and SET variables. Complex nested types are pulled out of the definitions and used to create additional types to reduce the nesting levels. An example of this is as follows:

	TestChoice ::= CHOICE {
 
	   a    INTEGER, 
 
	   b    BOOLEAN, 
 
	   c    SEQUENCE { aa IA5String, bb NULL }
 
	}
 

This would be reduced to the following equivalent ASN.1 productions:

	TestChoice-c ::= SEQUENCE { aa IA5String, bb NULL }
 

 
	TestChoice ::= CHOICE {
 
	  a	INTEGER,
 
	  b	BOOLEAN,
 
	  c	TestChoice-c
 
	}
 


In this case, the embedded constructed element for option c was pulled out to form the TestChoice-c production and then this new production is referenced in the original definition.


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

Copyright © 1997-2005 Objective Systems,Inc.
All Rights Reserved.


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.