blob: c806916824403181e0e2cc8312185c4d88032eb9 [file] [log] [blame]
Lev Walkin9c70e742013-10-17 13:03:36 -07001ModuleClassSample { iso org(3) dod(6) internet(1) private(4) enterprise(1)
2 spelio(9363) software(1) asn1c(5) test(1) 99 }
Lev Walkin166e1632006-03-16 11:07:13 +00003DEFINITIONS ::=
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
Lev Walkind0f7b912017-08-07 18:13:04 -070016-- Information Object Set has 4 entries:
Lev Walkin166e1632006-03-16 11:07:13 +000017-- [ &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
Lev Walkin17756972006-03-21 07:54:45 +000024SampleClassObjectSet SAMPLE-CLASS ::= {{ IDENTIFIED BY request-whatever } | { WITH CODE 1 IDENTIFIED BY response-stuff } | { TYPE SampleType WITH CODE 2 IDENTIFIED BY request-id } | { TYPE Salt IDENTIFIED BY request-salt }}
Lev Walkind0f7b912017-08-07 18:13:04 -070025-- Information Object Set has 4 entries:
26-- [ &id][ &code][ &Type]
27-- [1] request-whatever <no entry> <no entry>
28-- [2] response-stuff 1 <no entry>
29-- [3] request-id 2 SampleType
30-- [4] request-salt <no entry> Salt
31
Lev Walkin17756972006-03-21 07:54:45 +000032
Lev Walkin166e1632006-03-16 11:07:13 +000033request-Whatever SAMPLE-CLASS ::= { IDENTIFIED BY request-whatever }
Lev Walkind0f7b912017-08-07 18:13:04 -070034-- Information Object Set has 1 entry:
35-- [ &id][ &code][ &Type]
36-- [1] request-whatever <no entry> <no entry>
37
Lev Walkin166e1632006-03-16 11:07:13 +000038
39respond-Stuff SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY response-stuff }
Lev Walkind0f7b912017-08-07 18:13:04 -070040-- Information Object Set has 1 entry:
41-- [ &id][ &code][ &Type]
42-- [1] response-stuff 1 <no entry>
43
Lev Walkin166e1632006-03-16 11:07:13 +000044
45request-Status SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY request-id }
Lev Walkind0f7b912017-08-07 18:13:04 -070046-- Information Object Set has 1 entry:
47-- [ &id][ &code][ &Type]
48-- [1] request-id 2 SampleType
49
Lev Walkin166e1632006-03-16 11:07:13 +000050
51request-Salt SAMPLE-CLASS ::= { TYPE Salt IDENTIFIED BY request-salt }
Lev Walkind0f7b912017-08-07 18:13:04 -070052-- Information Object Set has 1 entry:
53-- [ &id][ &code][ &Type]
54-- [1] request-salt <no entry> Salt
55
Lev Walkin166e1632006-03-16 11:07:13 +000056
57request-id RELATIVE-OID ::= { 1 1 1 }
58
59request-salt RELATIVE-OID ::= { 1 1 1 }
60
61request-whatever RELATIVE-OID ::= { 1 1 5 }
62
63response-stuff RELATIVE-OID ::= { 2 0 1 }
64
65SampleType ::= SEQUENCE {
66 ...
67}
68
69Salt ::= SET {
70 ...
71}
72
73END