Часть XIII13.8. Пример описания ASN.1Описание типа PersonnelRecord PersonnelRecord ::= [APPLICATION 0] IMPLICIT SET { Name, title [0] VisibleString, number EmployeeNumber, dateOfHire [1] Date, nameSpouse [2] Name, children [3] IMPLICIT SEQUENCE OF ChildInformation DEFAULT {} }
ChildInformation ::= SET { 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 --ГГГГММДД Описание значения типа PersonnelRecord { { givenName "John", initial "P", familyName "Smith" }, title "Director", number 51, dateOfHire "19710917", nameOfSpouse { givenName "Mary", initial "T", familyName "Smith" }, children { { { givenName "Ralph", initial "T", familyName "Smith" }, "19571111" }, { { givenName "Susan", initial "B", familyName "Jones" }, "19590717" } } } |