|
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 L_Groupes, seg_04cc90, seg_04cd76
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Text_Io; package body L_Groupes is function Longueur (Les_Groupes : in Object) return Natural is begin return Natural'(Liste.Length (Les_Groupes)); end Longueur; procedure Parcours (Les_Groupes : L_Groupes.Object) is Iter : Groupe.Liste_Porteurs.Iterator; Iterateur : Liste.Iterator; begin Liste.Init (Iterateur, Les_Groupes); Text_Io.Put_Line ("--- Parcours de la Liste des Groupes ---"); loop exit when Liste.Done (Iterateur); -- Text_Io.Put_Line (Groupe.Image (Liste.Value (Iterateur))); Groupe.Parcours (Iter, Liste.Value (Iterateur)); Liste.Next (Iterateur); end loop; end Parcours; procedure Insert_Element (Element : Groupe.Object; Les_Groupes : in out L_Groupes.Object) is begin Les_Groupes := Liste.Make (Element, Les_Groupes); end Insert_Element; procedure Search (Les_Groupes : in L_Groupes.Object; Nom_De_Groupe : String; Le_Groupe : out Groupe.Object) is Dernier_Car_Cherche : Natural; Dernier_Car_Trouve : Natural; Iterateur : Liste.Iterator; begin Dernier_Car_Cherche := Nom_De_Groupe'Length; Liste.Init (Iterateur, Les_Groupes); Groupe.Set (Le_Groupe, ""); loop exit when Liste.Done (Iterateur); Dernier_Car_Trouve := Groupe.Longueur_Name (Liste.Value (Iterateur)); if (Dernier_Car_Trouve = Dernier_Car_Cherche) then if (Nom_De_Groupe (1 .. Dernier_Car_Cherche) = Groupe.Image (Liste.Value (Iterateur))) then Le_Groupe := Liste.Value (Iterateur); exit; end if; end if; Liste.Next (Iterateur); end loop; end Search; procedure Search (Les_Groupes : in Object; Numero_Carte : in Carte.Object; Le_Groupe : in out Groupe.Object; Le_Porteur : in out Porteur.Object) is Iterateur : Liste.Iterator; begin Porteur.Set (Le_Porteur => Le_Porteur, Nom_Du_Porteur => "", Numero_De_Carte => Carte.Zero); Liste.Init (Iterateur, Les_Groupes); loop exit when Liste.Done (Iterateur); Le_Groupe := Liste.Value (Iterateur); Groupe.Search (Le_Groupe => Le_Groupe, Numero_De_Carte => Numero_Carte, Le_Porteur => Le_Porteur); exit when Porteur.Get (Le_Porteur => Le_Porteur) /= Carte.Zero; Liste.Next (Iterateur); end loop; end Search; function Search (L_G : in L_Groupes.Object; Nom_Groupe : String) return Boolean is Dernier_Car_Cherche : Natural; Dernier_Car_Trouve : Natural; Iterateur : Liste.Iterator; begin Dernier_Car_Cherche := Nom_Groupe'Length; Liste.Init (Iterateur, L_G); loop exit when Liste.Done (Iterateur); Dernier_Car_Trouve := Groupe.Longueur_Name (Liste.Value (Iterateur)); if (Dernier_Car_Trouve = Dernier_Car_Cherche) then if (Nom_Groupe (1 .. Dernier_Car_Cherche) = Groupe.Image (Liste.Value (Iterateur))) then return True; end if; end if; Liste.Next (Iterateur); end loop; return False; end Search; end L_Groupes;
nblk1=4 nid=0 hdr6=8 [0x00] rec0=1f rec1=00 rec2=01 rec3=012 [0x01] rec0=17 rec1=00 rec2=02 rec3=01a [0x02] rec0=1b rec1=00 rec2=03 rec3=01c [0x03] rec0=17 rec1=00 rec2=04 rec3=000 tail 0x217540cb2874f6e44965c 0x42a00088462060003