|
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: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Message_Array, seg_049305, seg_049312, seg_04947f
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧ └─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Text_Io, Generic_String_Sort_Array, Calendar, Time_Utilities; package body Message_Array is package Mess_Array is new Generic_String_Sort_Array (Element => Identifier.Object, Max_Element_Number => 100, Null_Element => Identifier.Null_Object, Get_Key => Identifier.Image, Show_Element => Identifier.Show); The_Array : Mess_Array.Object := Mess_Array.Null_Object; procedure Put (Message : in Identifier.Object; Ok : out Boolean) is begin Mess_Array.Put (The_Array, Message, Ok); end Put; function Message return String is A_Time : Time_Utilities.Time; Index : Integer := 0; A_Message : Identifier.Object; Ok : Boolean; begin A_Time := Time_Utilities.Convert_Time (Calendar.Clock); Index := Integer (A_Time.Second) mod Mess_Array.Number_Of (The_Array); if Index = 0 then Index := 1; end if; Mess_Array.Get (The_Array, A_Message, Index, Ok); return Identifier.Image (A_Message); end Message; procedure Show is begin Text_Io.Put_Line ("Message Array :"); Mess_Array.Show (The_Array); end Show; begin Mess_Array.Put (The_Array, Identifier.From_String ("J'aurais du mal a faire ca !")); end Message_Array;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=1d rec1=00 rec2=01 rec3=02c [0x01] rec0=14 rec1=00 rec2=02 rec3=001 tail 0x2174d9c80865b71247644 0x42a00088462060003