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

⟦7977e7e76⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Element_Cache, pragma Module_Name 4 3593, pragma Segmented_Heap Handle, pragma Subsystem Design_Facility, seg_001c63

Derivation

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

E3 Source Code



with Ada_Program;
with Errors;
package Element_Cache is

    subtype Element      is Ada_Program.Element;
    subtype Element_List is Ada_Program.Element_List;

    type Handle is limited private;
    type Modes  is (Create, Read, Update);

    procedure Open (Cache : in out Handle;  
                    Mode  :        Modes;  
                    Name  :        String);

    procedure Close (Cache : in out Handle);

    procedure Destroy (Cache : in out Handle);


    subtype Key is String;

    procedure Add (An_Element :        Element;  
                   To_Cache   : in out Handle;
                   With_Key   :        Key);

    procedure Remove (An_Element :        Element;  
                      From_Cache : in out Handle;
                      With_Key   :        Key);


    procedure Add (An_Element_List :        Element_List;  
                   To_Cache        : in out Handle;
                   With_Key        :        Key);

    procedure Remove (An_Element_List :        Element_List;
                      From_Cache      : in out Handle;
                      With_Key        :        Key);


    procedure Retrieve (Elements   : out Element_List;
                        From_Cache :     Handle;
                        With_Key   :     Key;
                        In_Context :     String := "<DEFAULT>");


    Failed : exception;
    --|
    --| FAILED is raised when any of the above operations
    --| cannot be successfully completed.  STATUS and DIAGNOSIS
    --| may be used to obtain additional information about the
    --| nature of the failure.

    function Diagnosis return String;
    function Status    return Errors.Condition;


    function Debug_Image (Of_Handle       : Handle;
                          Level           : Natural;
                          Prefix          : String;
                          Expand_Pointers : Boolean) return String;


    pragma Subsystem (Design_Facility, Closed);
    pragma Module_Name (4, 3593);
    pragma Bias_Key (109);

private
    type Handle_Data;
    type Handle is access Handle_Data;
    pragma Segmented_Heap (Handle);
end Element_Cache;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=22 rec1=00 rec2=01 rec3=058
        [0x01] rec0=00 rec1=00 rec2=04 rec3=00a
        [0x02] rec0=1e rec1=00 rec2=02 rec3=00c
        [0x03] rec0=09 rec1=00 rec2=03 rec3=000
    tail 0x20100f6aa7da18db49293 0x42a00088462065003