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

⟦9d8021392⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Polymorphic_Sequential_Io, pragma Module_Name 4 3210, pragma Subsystem Input_Output, seg_028477

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 Io_Exceptions;
with Device_Independent_Io;

package Polymorphic_Sequential_Io is

    pragma Subsystem (Input_Output);
    pragma Module_Name (4, 3210);

    type File_Type is limited private;

    type File_Mode is (In_File, Out_File);


    -- File management


    procedure Create (File : in out File_Type;
                      Mode :        File_Mode := Out_File;
                      Name :        String    := "";
                      Form :        String    := "");

    procedure Open (File : in out File_Type;
                    Mode :        File_Mode;
                    Name :        String;
                    Form :        String := "");

    procedure Close  (File : in out File_Type);
    procedure Delete (File : in out File_Type);
    procedure Reset  (File : in out File_Type; Mode : File_Mode);
    procedure Reset  (File : in out File_Type);

    function Mode (File : File_Type) return File_Mode;
    function Name (File : File_Type) return String;
    function Form (File : File_Type) return String;

    function Is_Open (File : File_Type) return Boolean;

    -- Input and output operations

    generic
        type Element_Type is private;
    package Operations is
        procedure Read  (File : File_Type; Item : out Element_Type);
        procedure Write (File : File_Type; Item : Element_Type);
    end Operations;

    function End_Of_File (File : File_Type) return Boolean;

    procedure Append
                 (File : in out File_Type; Name : String; Form : String := "");
    -- Exceptions

    Status_Error : exception renames Io_Exceptions.Status_Error;
    Mode_Error   : exception renames Io_Exceptions.Mode_Error;
    Name_Error   : exception renames Io_Exceptions.Name_Error;
    Use_Error    : exception renames Io_Exceptions.Use_Error;
    Device_Error : exception renames Io_Exceptions.Device_Error;
    End_Error    : exception renames Io_Exceptions.End_Error;
    Data_Error   : exception renames Io_Exceptions.Data_Error;

end Polymorphic_Sequential_Io;

E3 Meta Data

    nblk1=4
    nid=3
    hdr6=6
        [0x00] rec0=22 rec1=00 rec2=01 rec3=026
        [0x01] rec0=19 rec1=00 rec2=04 rec3=074
        [0x02] rec0=04 rec1=00 rec2=02 rec3=000
        [0x03] rec0=90 rec1=00 rec2=28 rec3=2b1
    tail 0x2172237dc83c1738e31c8 0x42a00088462065003
Free Block Chain:
  0x3: 0000  00 00 00 68 00 3e 20 20 20 20 44 61 74 61 5f 45  ┆   h >    Data_E┆