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

⟦5f7a8cad6⟧ Ada Source

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

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 Text_Io, Dynamic_Value;
procedure Testdv2 is
    Dv1, Dv3, Dv4 : Dynamic_Value.Object;



begin
    Text_Io.Put_Line ("append sans creation");
    Dynamic_Value.Append_To_Set (Dv1, "coucou");
    Dynamic_Value.Append_To_Set (Dv1, "salut");
    Dynamic_Value.Append_To_Set (Dv1, "bonsoir");
    Dynamic_Value.Append_To_Set (Dv1, "titi");
    Dynamic_Value.Append_To_Set (Dv1, "toto");

    Dynamic_Value.Print_Set (Dv1);

    Text_Io.Put_Line ("cherche tito");
    Text_Io.Put_Line (Boolean'Image (Dynamic_Value.Is_In_Set (Dv1, "tito")));  
    Text_Io.Put_Line ("cherche coucou");
    Text_Io.Put_Line ((Boolean'Image
                          (Dynamic_Value.Is_In_Set (Dv1, "coucou"))));
    Dynamic_Value.Delete_From_Set (Dv1, "salut");
    Dynamic_Value.Delete_From_Set (Dv1, "toto");
    Text_Io.Put_Line ("salut et toto supprime");
    Dynamic_Value.Print_Set (Dv1);


    Text_Io.Put_Line ("purge set");
    Dynamic_Value.Purge_Set (Dv1);
    Dynamic_Value.Print_Set (Dv1);


    Text_Io.Put_Line ("supprime titi de l'ensemble vide");
    Dynamic_Value.Delete_From_Set (Dv1, "titi");

    Text_Io.Put_Line ("ajout de 3 champs");
    Dynamic_Value.Append_To_Set (Dv1, "bonne");
    Dynamic_Value.Append_To_Set (Dv1, "nuit");
    Dynamic_Value.Append_To_Set (Dv1, "petit");
    Text_Io.Put_Line ("affichage:");
    Dynamic_Value.Print_Set (Dv1);

    Text_Io.Put_Line
       ("eessai de recherche de chaine dans un ensemble non cree");
    Text_Io.Put_Line (Boolean'Image (Dynamic_Value.Is_In_Set (Dv3, "coucou")));

end Testdv2;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1f rec1=00 rec2=01 rec3=00c
        [0x01] rec0=12 rec1=00 rec2=02 rec3=001
    tail 0x21544485886539003747b 0x42a00088462060003