|
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 - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Lecteur_68, seg_051259
└─⟦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 Lecteur_68 is package Us renames Util_String; procedure Create (O : in out Object; Numero : T_Lecteur; Site : Site_68.Object; Parametre : Parametre_68.Object) is begin Set_Numero (O, Numero); Set_Site (O, Site); Set_Parametre (O, Parametre); end Create; procedure Set_Numero (O : in out Object; Numero : T_Lecteur) is begin O.Numero := Numero; end Set_Numero; procedure Set_Site (O : in out Object; Site : Site_68.Object) is begin O.Site := Site; end Set_Site; procedure Set_Parametre (O : in out Object; Parametre : Parametre_68.Object) is begin O.Parametre := Parametre; end Set_Parametre; function Get_Numero (O : Object) return T_Lecteur is begin return O.Numero; end Get_Numero; function Get_Site (O : Object) return Site_68.Object is begin return O.Site; end Get_Site; function Get_Parametre (O : Object) return Parametre_68.Object is begin return O.Parametre; end Get_Parametre; function Image (O : Object) return String is begin return (Debut_Lecteur & Us.Suppression_Espace_Left (Natural'Image (Get_Numero (O))) & Sep_Lecteur & Site_68.Image (O.Site) & Sep_Lecteur & Parametre_68.Image (O.Parametre) & Sep_Lecteur & Fin_Lecteur); 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 : Natural; begin Us.String_Contient (S, Debut_Lecteur, P1); Us.Position (S (P1 + 1 .. S'Last), Sep_Lecteur, P2); Site_68.Value (S (P2 + 1 .. S'Last), O.Site, P3); Parametre_68.Value (S (P3 + 2 .. S'Last), O.Parametre, P4); Us.String_Contient (S (P4 + 2 .. S'Last), Fin_Lecteur, P5); Set_Numero (O, Natural'Value (S (P1 + 1 .. P2 - 1))); Der_Car := P5; end Value; end Lecteur_68;
nblk1=4 nid=4 hdr6=6 [0x00] rec0=29 rec1=00 rec2=01 rec3=01e [0x01] rec0=24 rec1=00 rec2=02 rec3=04c [0x02] rec0=0d rec1=00 rec2=03 rec3=000 [0x03] rec0=04 rec1=9b rec2=c4 rec3=742 tail 0x2154b2a9c87995b2a23d8 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 00 00 05 00 02 20 20 02 03 04 05 06 66 75 06 ┆ fu ┆