|
|
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 Actions, seg_046aeb
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Quate;
use Quate;
package body Actions is
Size_Max : constant Integer := 10;
type Action is array (1 .. Size_Max) of My_String.Variable_String;
Actions_Array : Action;
Size : Natural := 0;
Iterator : Natural;
procedure Reset is
begin
Size := 0;
for I in 1 .. Size_Max loop
My_String.Free (Actions_Array (I));
end loop;
end Reset;
function Add (Name : String) return Boolean is
begin
if Size < Size_Max then
Size := Size + 1;
My_String.Append (Actions_Array (Size), Name);
return True;
else
return False;
end if;
end Add;
function Exists (Name : String) return Boolean is
Find : Boolean := False;
I : Integer := 1;
begin
while not Find and I <= Size loop
if My_String.Image (Actions_Array (I)) = Name then
Find := True;
end if;
I := I + 1;
end loop;
return Find;
end Exists;
procedure At_Begin is
begin
Iterator := 1;
end At_Begin;
function Current_Name return String is
begin
return My_String.Image (Actions_Array (Iterator));
end Current_Name;
procedure Next is
begin
Iterator := Iterator + 1;
end Next;
function At_End return Boolean is
begin
return (Size < Iterator);
end At_End;
end Actions;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=28 rec1=00 rec2=01 rec3=032
[0x01] rec0=1c rec1=00 rec2=02 rec3=001
tail 0x2154376d48651876f1367 0x42a00088462060003