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

⟦8b7a4dfaa⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Variable_Table, seg_044c23

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 Dynamic_Value, Type_Table, Variable_Table, Text_Io;

procedure Test_Variable_Table is
    V : Dynamic_Value.Object;
begin

--_-_-_-_-_-_-_-_-_-_-_ Declaration des types

    Type_Table.Declare_Type_Name ("premier type", 1, 1);

    Type_Table.Append_Field_In_Current_Type
       ("v1", Dynamic_Value.Integer_Number, 2, 2);

    Type_Table.Append_Field_In_Current_Type
       ("v2", Dynamic_Value.Integer_Number, 3, 3);

    Type_Table.Declare_Type_Name ("deuxieme type", 4, 4);

    Type_Table.Append_Field_In_Current_Type
       ("v3", Dynamic_Value.Integer_Number, 5, 5);
    Type_Table.Append_Field_In_Current_Type
       ("v4", Dynamic_Value.Integer_Number, 6, 6);

    Type_Table.Declare_Type_Name ("troisieme type", 7, 7);

    Type_Table.Append_Field_In_Current_Type
       ("v5", Dynamic_Value.Integer_Number, 8, 8);
    Type_Table.Append_Field_In_Current_Type
       ("v6", Dynamic_Value.Integer_Number, 9, 9);  
    Type_Table.Declare_Type_Name ("type herite", 98, 98);
    Type_Table.Inherite_Type (Name => "le fiston",
                              Parent_Name => "deuxieme type",
                              L => 333,
                              C => 333);
    Type_Table.Append_Field_In_Current_Type
       ("v8", Dynamic_Value.Boolean_Number, 99, 99);

    Type_Table.Print;
--_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Declaration de variables

    Variable_Table.Create ("variable1", "type herite", 999, 999);
    Variable_Table.Create ("variable2", Dynamic_Value.Boolean_Number, 888, 888);


    Variable_Table.Print;

    Variable_Table.Go_In ("variable1");
    Variable_Table.Go_In ("le fiston");
    V := Variable_Table.Get_Access_On ("v3");
    Dynamic_Value.Set_Value (V, 123456);

    Variable_Table.Print;

    Variable_Table.Init_Acces_Path;
    Variable_Table.Append_To_Acces_Path ("v3");
    Variable_Table.Append_To_Acces_Path ("le fiston");
    Variable_Table.Append_To_Acces_Path ("variable1");
    V := Variable_Table.Get_Access_Through_Path;
    Dynamic_Value.Set_Value (V, 54);
    Variable_Table.Print;

end Test_Variable_Table;

E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=1f rec1=00 rec2=01 rec3=03a
        [0x01] rec0=1b rec1=00 rec2=02 rec3=060
        [0x02] rec0=06 rec1=00 rec2=03 rec3=000
    tail 0x21540d5f486434f706259 0x42a00088462060003