PersonnelRecord ::= [APPLICATION 0] IMPLICIT SET {
name Name,
title [0] VisibleString,
number EmployeeNumber,
dateOfHire [1] Date,
nameOfSpouse [2] Name,
children [3] IMPLICIT
SEQUENCE OF ChildInformation DEFAULT {} }
ChildInformation ::= SET
{ name Name,
dateOfBirth [0] Date}
Name ::= [APPLICATION 1] IMPLICIT SEQUENCE
{ givenName VisibleString,
initial VisibleString,
familyName VisibleString}
EmployeeNumber ::= [APPLICATION 2] IMPLICIT INTEGER
Date ::= [APPLICATION 3] IMPLICIT VisibleString -- YYYYMMDD
Can anyone give a short description about the above statements? In
particular on the function about
[APPLICATION X]
This signifies a tag. The class of the tag is APPLICATION; the number of
the tag is X.
[1]/[2]/[0]...
This is also a tag. The class of such tags is CONTEXT SPECIFIC; the number
is the number within the brackets.
{}
In the line
SEQUENCE OF ChildInformation DEFAULT {} }
the {} specifies an empty SEQUENCE OF. You can look at SEQUENCE OF as an
array, in this case an array of ChildInformation. If nothing is specified,
the default is an empty array.
It looks like you could use some basic ASN.1 knowledge. Permit me to
suggest
http://www.oss.com/asn1/booksintro.html
where you can download two ASN.1 reference manuals. They are both
comprehensive, although with different emphasis. Each has its own fans,
but both are very good.
=====================================================================
Conrad Sigona Voice Mail : 1-732-302-9669 x400
OSS Nokalva Fax : 1-614-388-4156
[EMAIL PROTECTED] My direct line : 1-315-845-1773
_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1