ASN.1 Writer.
Hej,Jeg prøver at tilføj en CHOICE til en ASN.1 dokument.
Employee DEFINITIONS ::= BEGIN
EXPORTS;
PersonnelChoice ::= CHOICE{
personnelrecord [1] PersonnelRecord,
testrecord [2] TestRecord}
PersonnelRecord ::= [APPLICATION 0] IMPLICIT SET {
name Name,
title [0] VisibleString,
number EmployeeNumber,
dateOfHire [1] Date,
spouse [2]
IMPLICIT SEQUENCE OF SpouseInformation DEFAULT {},
children [3]
IMPLICIT SEQUENCE OF ChildInformation DEFAULT {}
}
TestRecord ::= [APPLICATION 0] IMPLICIT SET {
name Name,
spouse [0]
IMPLICIT SEQUENCE OF SpouseInformation DEFAULT {},
children [1]
IMPLICIT SEQUENCE OF ChildInformation DEFAULT {}
}
Det går fint men når jeg prøver at lave min Writer så får jeg problemer altid problemer med udfyldning af CHOICE.
Hvad skal man gør specialt når man har sådan en CHOICE.
mvh