Next: , Previous: ASN.1 syntax, Up: ASN.1 structure handling


1.2 Naming

Consider this definition:

      Example { 1 2 3 4 }

      DEFINITIONS EXPLICIT TAGS ::=

      BEGIN

      Group ::= SEQUENCE {
         id   OBJECT IDENTIFIER,
         value  Value
      }

      Value ::= SEQUENCE {
         value1  INTEGER,
         value2  BOOLEAN
      }

      END

To identify the type 'Group' you have to use the null terminated string "Example.Group". These strings are used in functions that are described below.

Others examples:

Field 'id' in 'Group' type : "Example.Group.id".

Field 'value1' in field 'value' in type 'Group': "Example.Group.value.value1".

Elements of structured types that don't have a name, receive the name "?1","?2", and so on.

The name "?LAST" indicates the last element of a SET_OF or SEQUENCE_OF.