|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Tds_Test, seg_046cc9
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
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 "toto" numero 1
V4 := Tds.Get_Access_On_Value (Master_Table, 1);
Dynamic_Value.Print (V4);
--recherche de la table "st2" numero 3
Table2 := Tds.Get_Table (Master_Table, 3);
Tds.Print (Table2);
-- recherche de la table "st1" numero 2
Table2 := Tds.Get_Table (Master_Table, 2);
Tds.Print (Table2);
end Tds_Test;
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 0x215439e0e865237db416b 0x42a00088462060003