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

⟦eb864920f⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Set_Method, seg_0549a4

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 Set_Generic;
with Com_Defs;

package Set_Method is

    package T_Method is
        type Method is
            record
                Name : Com_Defs.V_String;
                Parameter : Com_Defs.V_String;
                Number : Com_Defs.V_String;  
                Used : Boolean := False;
                Lost : Boolean := False;
            end record;

        procedure Initialize (This_Method : in out Method;
                              Name : Com_Defs.V_String;
                              Parameter : Com_Defs.V_String;
                              Number : Com_Defs.V_String);

        function Get_Name (Of_This_Method : Method) return Com_Defs.V_String;
        function Get_Parameter (Of_This_Method : Method)
                               return Com_Defs.V_String;
    end T_Method;

    type Method_Array is array (1 .. 5) of T_Method.Method;

    package Set_Of_Methods is new Set_Generic (Element => T_Method.Method);

    function Create_A_Set_Of_Methods return Set_Of_Methods.Set;

    procedure Add (This_Method : T_Method.Method;
                   In_This_Set : in out Set_Of_Methods.Set);
    procedure Delete (This_Method : T_Method.Method;
                      From_This_Set : in out Set_Of_Methods.Set);

    function Is_Empty (This_Set : in Set_Of_Methods.Set) return Boolean;

    function Find (This_Method : T_Method.Method;
                   In_This_Set : in Set_Of_Methods.Set) return Boolean;
    function Find (This_Method_Name : Com_Defs.V_String;
                   In_This_Set : Set_Of_Methods.Set) return Boolean;
    function Is_Marked_As_Lost
                (This_Method : T_Method.Method;
                 In_This_Set : in Set_Of_Methods.Set) return Boolean;
    function Is_Marked_As_Used
                (This_Method : T_Method.Method;
                 In_This_Set : in Set_Of_Methods.Set) return Boolean;

    procedure Mark_As_Used (This_Method : in out T_Method.Method;
                            In_This_Set : in out Set_Of_Methods.Set);
    procedure Unmark_As_Used (This_Method : in out T_Method.Method;
                              In_This_Set : in out Set_Of_Methods.Set);

    procedure Mark_As_Lost (This_Method : in out T_Method.Method;
                            In_This_Set : in out Set_Of_Methods.Set);
    procedure Unmark_As_Lost (This_Method : in out T_Method.Method;
                              In_This_Set : in out Set_Of_Methods.Set);

    procedure Get_All_Method (This_Method_Name : Com_Defs.V_String;
                              From_This_Set : Set_Of_Methods.Set;
                              Tab : in out Method_Array);

    procedure Print (The_Method : in Set_Of_Methods.Set);
end Set_Method;

E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=1f rec1=00 rec2=01 rec3=00c
        [0x01] rec0=14 rec1=00 rec2=02 rec3=082
        [0x02] rec0=10 rec1=00 rec2=03 rec3=000
    tail 0x2175daed887b88812030f 0x42a00088462060003