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

⟦907a730fc⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Models, seg_0464ba, seg_046517

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 Fields, Text_Io, Bounded_String, Binary_Trees_Pkg;

package Models is

    Error_Model_Store : exception;
    Error_Model_Index : exception;
    Error_Model_Search : exception;

    type Object is limited private;
    type Model_Index is limited private;

    Max_Model_String : constant := 32;

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

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

    function Has_Field_In_Model
                (D : in Object; Model_Name : String; Field_Name : String)
                return Boolean;


    function Get_Model_Type_By_Name (D : Object; Name : String) return String;
    function Get_Field_Type_By_Name
                (D : Object; Model_Name : String; Attribute_Name : String)
                return String;

    procedure Get_Model_Fields_By_Name
                 (D : Object; Name : String; F : in out Fields.Object);
    procedure Dump_Models (D : in Object);

    procedure Dump_Number_Of_Model (D : in Object);

--Modification
    procedure Store_Model (D : in out Object;
                           Aname : String;
                           Atype : String;
                           F : Fields.Object);


--Liberation
    procedure Dispose_Object (D : in out Object);

--Iteration
    procedure Open_Model_Indexation (D : Object; I : in out Model_Index);

    procedure Next_Model_Index (I : in out Model_Index);
    function Get_Indexed_Model_Name (I : Model_Index) return String;
    function Get_Indexed_Model_Type (I : Model_Index) return String;
    procedure Get_Indexed_Model_Fields
                 (I : Model_Index; F : in out Fields.Object);
    function No_More_Models (I : Model_Index) return Boolean;


private
    type Model is
        record
            Model_Name : Bounded_String.Variable_String (Max_Model_String);
            Model_Type : Bounded_String.Variable_String (Max_Model_String);
            Model_Fields : Fields.Object;
        end record;


    function Compare (A, B : Model) return Integer;
    package Models_Tree is new Binary_Trees_Pkg (Model, Compare);

    type Object is
        record
            Node : Models_Tree.Tree;
        end record;

    type Model_Index is
        record
            Node : Models_Tree.Iterator;
        end record;

end Models;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=21 rec1=00 rec2=01 rec3=052
        [0x01] rec0=0c rec1=00 rec2=04 rec3=01e
        [0x02] rec0=1e rec1=00 rec2=02 rec3=00c
        [0x03] rec0=06 rec1=00 rec2=03 rec3=000
    tail 0x21748b3a8865045132c4a 0x42a00088462060003