blob: 28e222f451a25e91fa779940dc7ab1a5c4437b1c [file] [log] [blame]
Lev Walkindc4376d2006-03-16 11:04:55 +00001
2-- OK: Everything is fine
3
4-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
5-- .spelio.software.asn1c.test (9363.1.5.1)
6-- .99
7
8ModuleClassSample
9 { iso org(3) dod(6) internet (1) private(4) enterprise(1)
10 spelio(9363) software(1) asn1c(5) test(1) 99 }
11 DEFINITIONS ::=
12BEGIN
13
14 SAMPLE-CLASS ::= CLASS {
15 &id RELATIVE-OID UNIQUE,
16 &code ENUMERATED { request, response, status }
17 DEFAULT request,
18 &Type OPTIONAL
19 } WITH SYNTAX { [TYPE &Type] [WITH CODE &code] IDENTIFIED BY &id }
20
Lev Walkin17756972006-03-21 07:54:45 +000021 SampleClassObjectSet SAMPLE-CLASS ::= {
22 request-Whatever | respond-Stuff | request-Status | request-Salt
23 }
24
Lev Walkindc4376d2006-03-16 11:04:55 +000025 request-Whatever SAMPLE-CLASS
26 ::= { IDENTIFIED BY request-whatever }
27
28 respond-Stuff SAMPLE-CLASS
29 ::= { WITH CODE 1 IDENTIFIED BY response-stuff }
30
31 request-Status SAMPLE-CLASS
32 ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY request-id }
33
34 request-Salt SAMPLE-CLASS
35 ::= { TYPE Salt IDENTIFIED BY request-salt }
36
37 request-id RELATIVE-OID ::= { 1 1 1 }
38 request-salt RELATIVE-OID ::= { 1 1 1 }
39 request-whatever RELATIVE-OID ::= { 1 1 5 }
40 response-stuff RELATIVE-OID ::= { 2 0 1 }
41
Lev Walkindc4376d2006-03-16 11:04:55 +000042 SampleType ::= SEQUENCE { ... }
43 Salt ::= SET { ... }
44
45END