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

⟦db56a797a⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Fields, seg_04334f, seg_04367c

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 
└─⟦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 Bounded_String, Lists;

package Fields is

    Max_Field_String : constant Natural := 32;

    type Object is private;
    type Field_Index is limited private;

    Error_Field_Store : exception;
    Error_Field_Empty : exception;
    Error_Field_Index : exception;

--Creation
    procedure Create (D : in out Object);

--Access
    function Has_Field (D : in Object; Name : in String) return Boolean;
    function Get_Field_Type_By_Name (D : Object; Name : String) return String;

    procedure Dump_Number_Of_Field (D : in Object);
    procedure Dump_Fields (D : in Object);
    procedure Surface_Copy (To_Fields : in out Object; The_Fields : Object);
    procedure Deep_Copy (To_Fields : in out Object; The_Fields : Object);
--    function Object_Image (D : in Object) return String;

--Modification
    procedure Store_Field (D : in out Object; Aname : String; Atype : String);

--Liberation
    procedure Dispose_Object (D : in out Object);
--Iteration
    procedure Open_Field_Indexation (D : Object; I : in out Field_Index);
    procedure Next_Field_Index (I : in out Field_Index);
    function Get_Indexed_Field_Name (I : Field_Index) return String;
    function Get_Indexed_Field_Type (I : Field_Index) return String;
    function No_More_Fields (I : Field_Index) return Boolean;


private


    type Field is
        record
            Field_Name : Bounded_String.Variable_String (Max_Field_String);
            Field_Type : Bounded_String.Variable_String (Max_Field_String);
        end record;

    function Isequal (X, Y : in Field) return Boolean;
    package Fields_List is new Lists (Itemtype => Field, Equal => Isequal);

    type Object is
        record
            Node : Fields_List.List;
        end record;

    type Field_Index is
        record
            Node : Fields_List.Listiter;
        end record;

end Fields;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=000
        [0x01] rec0=20 rec1=00 rec2=02 rec3=001
    tail 0x2153eaa7e86356cedb556 0x42a00088462060003