| 1 |
with Discr59_Pkg2; |
| 2 |
|
| 3 |
package Discr59_Pkg1 is |
| 4 |
|
| 5 |
subtype Index_Type is Natural range 1 .. 300; |
| 6 |
|
| 7 |
type Code_Type is (Global_Query, Status_Query, Alert); |
| 8 |
|
| 9 |
type Id_Type is (None, At_Command, At_Response); |
| 10 |
|
| 11 |
package My_G is new Discr59_Pkg2 (21); |
| 12 |
|
| 13 |
type Arr is array (Index_Type range <>) of My_G.Token_Type; |
| 14 |
|
| 15 |
type Unit_List_Type (Last : Natural) is record |
| 16 |
A : Arr (1 .. Last); |
| 17 |
end record; |
| 18 |
|
| 19 |
type At_Response_Type (Kind : Code_Type; Units : Natural) is record |
| 20 |
case Kind is |
| 21 |
when Global_Query => Global_Query : Unit_List_Type (Units); |
| 22 |
when Status_Query => null; |
| 23 |
when Alert => Alert : Unit_List_Type (Units); |
| 24 |
end case; |
| 25 |
end record; |
| 26 |
|
| 27 |
type Rec (Kind : Id_Type; Code : Code_Type; Units : Natural) is record |
| 28 |
case Kind is |
| 29 |
when None => null; |
| 30 |
when At_Command => null; |
| 31 |
when At_Response => At_Response : At_Response_Type (Code, Units); |
| 32 |
end case; |
| 33 |
end record; |
| 34 |
|
| 35 |
end Discr59_Pkg1; |