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

⟦43c1cdf56⟧ Ada Source

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

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 Text_Io;
package body Abonnement_Storage is

    type Abonnement is
        record
            State : Boolean := False;
            Name : T_Host_Id;
            Socket : T_Socket;
        end record;

    Max : constant := 100;

    type Abonnement_Table is array (1 .. Max) of Abonnement;

    Table : Abonnement_Table;

    function Add (Name : T_Host_Id; Socket : T_Socket) return Natural is
        I : Natural := 1;
        Id : Natural := 0;
    begin
        while (Table (I).State) and (I /= Table'Last + 1) loop
            I := I + 1;
        end loop;
        if I = Table'Last + 1 then
            Text_Io.Put_Line ("Le tableau des abonnes est plein...");
            Id := 0;
        else  
            Id := I;
            Table (Id).State := True;
            Table (Id).Name := Name;
            Table (Id).Socket := Socket;
        end if;
        return Id;
    end Add;


    procedure Delete (Id : Natural) is
    begin  
        if Is_Member (Id) then
            Table (Id).State := False;
        end if;
    end Delete;


    function See_Name (Id : Natural) return T_Host_Id is
    begin
        return Table (Id).Name;
    end See_Name;


    function See_Socket (Id : Natural) return T_Socket is
    begin
        return Table (Id).Socket;
    end See_Socket;


    function Is_Member (Id : Natural) return Boolean is
    begin
        return Table (Id).State;
    end Is_Member;

end Abonnement_Storage;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=27 rec1=00 rec2=01 rec3=006
        [0x01] rec0=19 rec1=00 rec2=02 rec3=000
    tail 0x21764de8c87ce79e0f40d 0x42a00088462060003