|
|
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: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Jj_Hh_Mm_68, seg_05161d
└─⟦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 Jj_Hh_Mm_68 is
package Us renames Util_String;
procedure Create (O : in out Object;
Jour : T_Jour;
Horaire : Horaire_68.Object) is
begin
Set_Jour (O, Jour);
Set_Horaire (O, Horaire);
end Create;
procedure Create (O : in out Object;
Jour : T_Jour;
Heure : Horaire_68.T_Heure;
Minute : Horaire_68.T_Minute) is
begin
Set_Jour (O, Jour);
Horaire_68.Set_Heure (O.Horaire, Heure);
Horaire_68.Set_Minute (O.Horaire, Minute);
end Create;
procedure Set_Jour (O : in out Object; Jour : T_Jour) is
begin
O.Jour := Jour;
end Set_Jour;
procedure Set_Horaire (O : in out Object; Horaire : Horaire_68.Object) is
begin
O.Horaire := Horaire;
end Set_Horaire;
function Get_Jour (O : Object) return T_Jour is
begin
return O.Jour;
end Get_Jour;
function Get_Horaire (O : Object) return Horaire_68.Object is
begin
return O.Horaire;
end Get_Horaire;
function Image (O : Object) return String is
begin
return (Debut_Jj_Hh_Mm & T_Jour'Image (Get_Jour (O)) &
Sep_Jj_Hh_Mm & Horaire_68.Image (Get_Horaire (O)) &
Sep_Jj_Hh_Mm & Fin_Jj_Hh_Mm);
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 : Natural;
begin
Us.String_Contient (S, Debut_Jj_Hh_Mm, P1);
Us.Position (S (P1 + 1 .. S'Last), Sep_Jj_Hh_Mm, P2);
Horaire_68.Value (S (P2 + 1 .. S'Last), O.Horaire, P3);
Us.String_Contient (S (P3 + 2 .. S'Last), Fin_Jj_Hh_Mm, P4);
Set_Jour (O, T_Jour'Value (S (P1 + 1 .. P2 - 1)));
Der_Car := P4;
end Value;
end Jj_Hh_Mm_68;
nblk1=4
nid=0
hdr6=8
[0x00] rec0=26 rec1=00 rec2=01 rec3=054
[0x01] rec0=08 rec1=00 rec2=04 rec3=018
[0x02] rec0=22 rec1=00 rec2=02 rec3=01e
[0x03] rec0=01 rec1=00 rec2=03 rec3=000
tail 0x2154b44be879a5bacbccf 0x42a00088462060003