|
|
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 Evenement_68, seg_05160e
└─⟦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 Evenement_68 is
package Us renames Util_String;
procedure Create (O : in out Object;
Lecteur : Lecteur_68.T_Lecteur;
Carte : Carte_68.T_Carte;
Statut : T_Statut;
Jjhhmm : Jj_Hh_Mm_68.Object;
Tete : T_Tete) is
begin
Set_Lecteur (O, Lecteur);
Set_Carte (O, Carte);
Set_Statut (O, Statut);
Set_Jjhhmm (O, Jjhhmm);
Set_Tete (O, Tete);
end Create;
procedure Set_Lecteur (O : in out Object; Lecteur : Lecteur_68.T_Lecteur) is
begin
O.Lecteur := Lecteur;
end Set_Lecteur;
procedure Set_Carte (O : in out Object; Carte : Carte_68.T_Carte) is
begin
O.Carte := Carte;
end Set_Carte;
procedure Set_Statut (O : in out Object; Statut : T_Statut) is
begin
O.Statut := Statut;
end Set_Statut;
procedure Set_Jjhhmm (O : in out Object; Jjhhmm : Jj_Hh_Mm_68.Object) is
begin
O.Jjhhmm := Jjhhmm;
end Set_Jjhhmm;
procedure Set_Tete (O : in out Object; Tete : T_Tete) is
begin
O.Tete := Tete;
end Set_Tete;
function Get_Lecteur (O : Object) return Lecteur_68.T_Lecteur is
begin
return O.Lecteur;
end Get_Lecteur;
function Get_Carte (O : Object) return Carte_68.T_Carte is
begin
return O.Carte;
end Get_Carte;
function Get_Statut (O : Object) return T_Statut is
begin
return O.Statut;
end Get_Statut;
function Get_Jjhhmm (O : Object) return Jj_Hh_Mm_68.Object is
begin
return O.Jjhhmm;
end Get_Jjhhmm;
function Get_Tete (O : Object) return T_Tete is
begin
return O.Tete;
end Get_Tete;
function Image (O : Object) return String is
begin
return (Debut_Evenement &
Us.Suppression_Espace_Left (Natural'Image (Get_Lecteur (O))) &
Sep_Evenement &
Us.Suppression_Espace_Left (Natural'Image (Get_Carte (O))) &
Sep_Evenement &
T_Statut'Image (Get_Statut (O)) &
Sep_Evenement &
Jj_Hh_Mm_68.Image (Get_Jjhhmm (O)) &
Sep_Evenement &
T_Tete'Image (Get_Tete (O)) &
Sep_Evenement &
Fin_Evenement);
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
J : Jj_Hh_Mm_68.Object;
P1, P2, P3, P4, P6, P7, P8 : Natural;
begin
Us.String_Contient (S, Debut_Evenement, P1);
Us.Position (S (P1 + 1 .. S'Last), Sep_Evenement, P2); -- lecteur
Us.Position (S (P2 + 1 .. S'Last), Sep_Evenement, P3); -- Carte
Us.Position (S (P3 + 1 .. S'Last), Sep_Evenement, P4); -- statut
Jj_Hh_Mm_68.Value (S (P4 + 1 .. S'Last), J, P6);
Us.Position (S (P6 + 2 .. S'Last), Sep_Evenement, P7); -- Tete
Us.String_Contient (S (P7 + 1 .. S'Last), Fin_Evenement, P8);
Create (O => O,
Lecteur => Natural'Value (S (P1 + 1 .. P2 - 1)),
Carte => Natural'Value (S (P2 + 1 .. P3 - 1)),
Statut => T_Statut'Value (S (P3 + 1 .. P4 - 1)),
Jjhhmm => J,
Tete => T_Tete'Value (S (P6 + 2 .. P7 - 1)));
Der_Car := P8;
end Value;
end Evenement_68;
nblk1=5
nid=2
hdr6=8
[0x00] rec0=26 rec1=00 rec2=01 rec3=024
[0x01] rec0=2f rec1=00 rec2=05 rec3=01a
[0x02] rec0=1d rec1=00 rec2=03 rec3=03c
[0x03] rec0=11 rec1=00 rec2=04 rec3=000
[0x04] rec0=0a rec1=00 rec2=02 rec3=000
tail 0x2154b4486879a5b8dd03d 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 00 00 04 80 01 74 01 02 03 04 20 31 29 29 2c ┆ t 1)),┆