|
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: 2048 (0x800) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Class_Id, seg_02a47b
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
package body Class_Id is Max_Classes : constant := 100; subtype Identifier is Integer range 1 .. Max_Classes; type Class_Name is access String; The_Classes : array (Identifier) of Class_Name; function Value (Class_Name : String) return Integer is begin for I in The_Classes'Range loop if The_Classes (I) = null then The_Classes (I) := new String'(Class_Name); return I; end if; if The_Classes (I).all = Class_Name then return I; end if; end loop; end Value; function Image (Id : Integer) return String is begin return The_Classes (Id).all; end Image; end Class_Id;
nblk1=1 nid=0 hdr6=2 [0x00] rec0=1c rec1=00 rec2=01 rec3=000 tail 0x2172389e083dc78599e28 0x42a00088462063c03