|
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 Codage, seg_03886b
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Spectacle_Tree; with Tad_Abstract; with Text_Io; package body Codage is package Int_Io is new Text_Io.Integer_Io (Natural); The_Time : Natural := 1; procedure Generer_Code_Activer (Ptr : Tad_Abstract.Pobject) is begin Int_Io.Put (The_File, The_Time); Int_Io.Put (The_File, " "); Int_Io.Put (The_File, Ptr.Left.all.Station); Int_Io.Put (The_File, Ptr.Left.all.Acteur); Text_Io.Put_Line (" 0001"); end Generer_Code_Activer; procedure Generer_Code_Desactiver (Ptr : Tad_Abstract.Pobject) is begin Int_Io.Put (The_File, The_Time); Text_Io.Put (The_File, " "); Int_Io.Put (The_File, Ptr.Left.all.Station); Int_Io.Put (The_File, Ptr.Left.all.Acteur); Text_Io.Put_Line (The_File, " 0000"); end Generer_Code_Desactiver; procedure Generer_Code_Au_Temps (Ptr : Tad_Abstract.Pobject) is begin The_Time := The_Time + Ptr.all.Valeur; end Generer_Code_Au_Temps; procedure Parcourir (Ptr : Tad_Abstract.Pobject) is begin if Ptr /= null then case Tab_Abstract.Type_Of_Node (Ptr.all) is when Chainage => Parcourir (Ptr.Left); Parcouriri (Ptr.Right); when Activer => Generer_Code_Activer (Ptr); when Desactiver => Generer_Code_Desactiver (Ptr); when Au_Temps => Generer_Code_Au_Temps (Ptr); when others => null; end case; end if; end Parcourir; function Generer_Code return String is begin Text_Io.Create (File => The_File, Mode => Text_Io.Out_File, Name => "fichier_code", Form => ""); Parcourir (Spectacle_Tree.Object); Text_Io.Close (The_File); return ("fichier_code"); end Generer_Code; end Codage;
nblk1=4 nid=0 hdr6=8 [0x00] rec0=24 rec1=00 rec2=01 rec3=036 [0x01] rec0=00 rec1=00 rec2=02 rec3=020 [0x02] rec0=20 rec1=00 rec2=04 rec3=012 [0x03] rec0=04 rec1=00 rec2=03 rec3=000 tail 0x21736368e84e772cb0d5d 0x42a00088462060003