vlm | 13e7bd3 | 2006-03-16 11:07:13 +0000 | [diff] [blame] | 1 | ModuleClassSample { iso org(3) dod(6) internet(1) private(4) enterprise(1) |
| 2 | spelio(9363) software(1) asn1c(5) test(1) 99 } |
| 3 | DEFINITIONS ::= |
| 4 | BEGIN |
| 5 | |
| 6 | SAMPLE-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 | |
vlm | e0d7151 | 2006-03-21 07:54:45 +0000 | [diff] [blame] | 24 | SampleClassObjectSet 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 }} |
| 25 | |
vlm | 13e7bd3 | 2006-03-16 11:07:13 +0000 | [diff] [blame] | 26 | request-Whatever SAMPLE-CLASS ::= { IDENTIFIED BY request-whatever } |
| 27 | |
| 28 | respond-Stuff SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY response-stuff } |
| 29 | |
| 30 | request-Status SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY request-id } |
| 31 | |
| 32 | request-Salt SAMPLE-CLASS ::= { TYPE Salt IDENTIFIED BY request-salt } |
| 33 | |
| 34 | request-id RELATIVE-OID ::= { 1 1 1 } |
| 35 | |
| 36 | request-salt RELATIVE-OID ::= { 1 1 1 } |
| 37 | |
| 38 | request-whatever RELATIVE-OID ::= { 1 1 5 } |
| 39 | |
| 40 | response-stuff RELATIVE-OID ::= { 2 0 1 } |
| 41 | |
| 42 | SampleType ::= SEQUENCE { |
| 43 | ... |
| 44 | } |
| 45 | |
| 46 | Salt ::= SET { |
| 47 | ... |
| 48 | } |
| 49 | |
| 50 | END |