|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 6144 (0x1800)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Plage_68, seg_051265
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Util_String;
package body Plage_68 is
package Us renames Util_String;
procedure Create (O : in out Object;
Numero : T_Plage;
Zone : Zone_68.T_Zone;
Per_1, Per_2, Per_3 : Ss_Zone_68.Object) is
begin
Set_Numero (O, Numero);
Set_Zone (O, Zone);
Set_Periode_1 (O, Per_1);
Set_Periode_2 (O, Per_2);
Set_Periode_3 (O, Per_3);
end Create;
procedure Set_Numero (O : in out Object; Numero : T_Plage) is
begin
O.Numero := Numero;
end Set_Numero;
procedure Set_Zone (O : in out Object; Zone : Zone_68.T_Zone) is
begin
O.Zone := Zone;
end Set_Zone;
procedure Set_Periode_1 (O : in out Object; Per_1 : Ss_Zone_68.Object) is
begin
O.Periode_1 := Per_1;
end Set_Periode_1;
procedure Set_Periode_2 (O : in out Object; Per_2 : Ss_Zone_68.Object) is
begin
O.Periode_2 := Per_2;
end Set_Periode_2;
procedure Set_Periode_3 (O : in out Object; Per_3 : Ss_Zone_68.Object) is
begin
O.Periode_3 := Per_3;
end Set_Periode_3;
function Get_Numero (O : Object) return T_Plage is
begin
return O.Numero;
end Get_Numero;
function Get_Zone (O : Object) return Zone_68.T_Zone is
begin
return O.Zone;
end Get_Zone;
function Get_Periode_1 (O : Object) return Ss_Zone_68.Object is
begin
return O.Periode_1;
end Get_Periode_1;
function Get_Periode_2 (O : Object) return Ss_Zone_68.Object is
begin
return O.Periode_2;
end Get_Periode_2;
function Get_Periode_3 (O : Object) return Ss_Zone_68.Object is
begin
return O.Periode_3;
end Get_Periode_3;
function Image (O : Object) return String is
begin
return (Debut_Plage &
Us.Suppression_Espace_Left (Natural'Image (Get_Numero (O))) &
Sep_Plage &
Us.Suppression_Espace_Left (Natural'Image (Get_Zone (O))) &
Sep_Plage &
Ss_Zone_68.Image (O.Periode_1) &
Sep_Plage &
Ss_Zone_68.Image (O.Periode_2) &
Sep_Plage &
Ss_Zone_68.Image (O.Periode_3) &
Sep_Plage &
Fin_Plage);
end Image;
function Value (S : String) return Object is
O : Object;
Der_Car : Natural;
begin
Value (S, O, Der_Car);
return O;
end Value;
procedure Value (S : String; O : in out Object; Der_Car : in out Natural) is
P1, P2, P3, P4, P5, P6, P7 : Natural;
begin
Us.String_Contient (S, Debut_Plage, P1);
Us.Position (S (P1 + 1 .. S'Last), Sep_Plage, P2);
Us.Position (S (P2 + 1 .. S'Last), Sep_Plage, P3);
Ss_Zone_68.Value (S (P3 + 1 .. S'Last), O.Periode_1, P4);
Ss_Zone_68.Value (S (P4 + 2 .. S'Last), O.Periode_2, P5);
Ss_Zone_68.Value (S (P5 + 2 .. S'Last), O.Periode_3, P6);
Us.String_Contient (S (P6 + 2 .. S'Last), Fin_Plage, P7);
Set_Numero (O, Natural'Value (S (P1 + 1 .. P2 - 1)));
Set_Zone (O, Natural'Value (S (P2 + 1 .. P3 - 1)));
Der_Car := P7;
end Value;
end Plage_68;
nblk1=5
nid=5
hdr6=8
[0x00] rec0=28 rec1=00 rec2=01 rec3=004
[0x01] rec0=2c rec1=00 rec2=03 rec3=020
[0x02] rec0=1d rec1=00 rec2=04 rec3=01a
[0x03] rec0=0c rec1=00 rec2=02 rec3=000
[0x04] rec0=80 rec1=00 rec2=00 rec3=100
tail 0x2154b2b4887995b3dcbc9 0x42a00088462060003
Free Block Chain:
0x5: 0000 00 00 01 92 80 02 29 3b 02 00 3f 20 20 20 20 20 ┆ ); ? ┆