ParameterAsn1Example.asn1
(
ASN.1 Examples |
Home )
ParameterAsn1Example-ASN1Module { 1 3 6 1 4 1 3817 99 1 2 2 }
DEFINITIONS IMPLICIT TAGS ::=
BEGIN
--
-- PVariable and PVariableList Parameterized Types
--
PVariable { ParamType, ParamType:initValue } ::= SEQUENCE
{
name GraphicString DEFAULT "",
value ParamType DEFAULT initValue
}
PVariableList { ParamType, ParamType:initValue } ::= SEQUENCE OF PVariable { ParamType, initValue }
CounterType ::= INTEGER { zero(0), one(1) }
initialCounterValue CounterType ::= zero
CounterList ::= PVariableList{ CounterType, initialCounterValue }
counterList1 CounterList ::= { { name "counter1", value 1 }, { name "counter2", value 2}, { name "counter3", value 3} }
StringType ::= GraphicString
initialStringValue StringType ::= ""
StringList ::= PVariableList{ StringType, initialStringValue }
stringList1 StringList ::= { { name "string1", value "one" }, { name "string2", value "two" }, { name "string3", value "three" } }
SwitchType ::= INTEGER { off(0), on(1) }
initialSwitchValue SwitchType ::= off
SwitchList ::= PVariableList{ SwitchType, initialSwitchValue }
switchList1 SwitchList ::= { { name "switch1", value on }, { name "switch2", value off }, { name "switch3", value on } }
END