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

⟦a3e55e51a⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Tds_Test, seg_04460a

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, Tds, Text_Io;

procedure Tds_Test is

    Master_Table : Tds.Object;
    V1, V2, V3, V4 : Dynamic_Value.Object;
    Table1, Table2 : Tds.Object;
begin
    -- insertion d'une valeur simple
    Dynamic_Value.Set_Value (V1, "");  
    Tds.Insert_Value_Symbol (Master_Table, "toto", 1, 2, V1);
    Tds.Print (Master_Table);

    -- modification de la valeur simple
    V2 := Tds.Get_Access_On_Value (Master_Table, "toto");
    Dynamic_Value.Set_Value (V2, "initialisation reussie");  
    Tds.Print (Master_Table);

    -- insertion d'un nouveau type
    Tds.Insert_Table_Symbol (Master_Table, "st1", "bof", 2, 3);
    Tds.Print (Master_Table);

    -- insertion d'une valeur simple dans le nouveau type
    Table1 := Tds.Get_Table (Master_Table, "st1");
    Dynamic_Value.Set_Value (V3, False);
    Tds.Insert_Value_Symbol (Table1, "valeur3", 5, 6, V3);
    Tds.Print (Master_Table);

    -- creation d'un nouveau type heritant du type declare precedemment
    Tds.Insert_Table_Symbol (Master_Table, "st2", "st1", 8, 9);
    Table2 := Tds.Get_Table (Master_Table, "st2");
    Tds.Deep_Copy (Table1, Table2);
    Tds.Print (Master_Table);

    -- modification de "valeur3" dans ce nouveau type pour verifier la deep_copy
    V4 := Tds.Get_Access_On_Value (Table2, "valeur3");
    Dynamic_Value.Set_Value (V4, True);
    Tds.Print (Master_Table);

    -- recherche de la valeur
--    v4:= tds.get_access_on_value(master_table,2);
    --  dynamic_value.print(v4);
    --recherche de la table
--    table2:=tds.get_table(master_table,3);
--    tds.print(table2);
    -- recherche de la valeur
--    v4:=tds.get_access_on_value(master_table,2);
--    dynamic_value.print(v4);


end Tds_Test;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=070
        [0x01] rec0=18 rec1=00 rec2=02 rec3=001
    tail 0x2154030ee863e72b446c9 0x42a00088462060003