blob: f88198c2bb93a916cf66e4496acafdbb832a3ef0 [file] [log] [blame]
vlm13e7bd32006-03-16 11:07:13 +00001ModuleClassSample { iso org(3) dod(6) internet(1) private(4) enterprise(1)
2 spelio(9363) software(1) asn1c(5) test(1) 99 }
3DEFINITIONS ::=
4BEGIN
5
6SAMPLE-CLASS ::= CLASS {
7 &id RELATIVE-OID UNIQUE,
8 &code ENUMERATED {
9 request(0),
10 response(1),
11 status(2)
12 } DEFAULT 0,
13 &Type OPTIONAL
14} WITH SYNTAX { [TYPE &Type] [WITH CODE &code] IDENTIFIED BY &id }
15
16-- Class matrix has 4 entries:
17-- [ &id][ &code][ &Type]
18-- [1] request-whatever <no entry> <no entry>
19-- [2] response-stuff 1 <no entry>
20-- [3] request-id 2 SampleType
21-- [4] request-salt <no entry> Salt
22
23
24request-Whatever SAMPLE-CLASS ::= { IDENTIFIED BY request-whatever }
25
26respond-Stuff SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY response-stuff }
27
28request-Status SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY request-id }
29
30request-Salt SAMPLE-CLASS ::= { TYPE Salt IDENTIFIED BY request-salt }
31
32request-id RELATIVE-OID ::= { 1 1 1 }
33
34request-salt RELATIVE-OID ::= { 1 1 1 }
35
36request-whatever RELATIVE-OID ::= { 1 1 5 }
37
38response-stuff RELATIVE-OID ::= { 2 0 1 }
39
40SampleType ::= SEQUENCE {
41 ...
42}
43
44Salt ::= SET {
45 ...
46}
47
48END