DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦604026b1d⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Client, seg_00febc

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Log_Writer;
with String_Map_Generic;
package body Client is

    package Client_Map is new String_Map_Generic
                                 (Size => 200, Range_Type => Id);

    Map : Client_Map.Map;
    Next_Id : Id;

    function Register (Client_Name : String) return Id is
        This_Id : Id;
    begin
        This_Id := Next_Id;
        Next_Id := Next_Id + 1;
        Client_Map.Define (Map, Client_Name, This_Id);
        Log_Writer.Log_Message ("Client", "registering " & Client_Name &
                                             " as id" & Id'Image (This_Id));
        return This_Id;
    end Register;


    function Get_Id (Name : String) return Id is
    begin
        return Client_Map.Eval (Map, Name);
    exception
        when others =>
            raise Unknown_Client;
    end Get_Id;

begin
    Client_Map.Initialize (Map);
    Client_Map.Define (Map, "Nil", Nil);
    Client_Map.Define (Map, "Console", Console);
    Client_Map.Define (Map, "Log", Log);
    Next_Id := Log + 1;
end Client;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=23 rec1=00 rec2=01 rec3=060
        [0x01] rec0=04 rec1=00 rec2=02 rec3=000
    tail 0x2170c1df0822f63df489d 0x42a00088462060003