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

⟦32e973374⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Group, seg_0462a6

Derivation

└─⟦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 Text_Io, Identifier, Group, Complement_Identifier_Array;
use Text_Io;
procedure Test_Group is

    Ok : Boolean;
    A_Group : Group.Object;  
    Id : Identifier.Object;

begin  
    Complement_Identifier_Array.Put (Identifier.From_String ("gaston"));
    Complement_Identifier_Array.Put (Identifier.From_String ("alfred"));
    Complement_Identifier_Array.Put (Identifier.From_String ("cuisine"));
    Complement_Identifier_Array.Put (Identifier.From_String ("table"));

    Group.Show (A_Group);

    Put_Line ("nom du groupe : " & Group.Name (A_Group));

    Identifier.Put (Id, "contenant");
    Group.Put_Name (A_Group, Id);

    Put_Line ("nom du groupe : " & Group.Name (A_Group));

    Group.Show (A_Group);

    Group.Put_Subject (A_Group,
                       Complement_Identifier_Array.Index ("gaston"), Ok);
    if Ok then
        Put_Line ("Le complement n'etait pas encore insere !");
    else
        Put_Line ("Le complement etait deja insere !");
    end if;

    Group.Put_Subject (A_Group,
                       Complement_Identifier_Array.Index ("alfred"), Ok);  
    if Ok then
        Put_Line ("Le complement n'etait pas encore insere !");
    else
        Put_Line ("Le complement etait deja insere !");
    end if;

    Group.Put_Subject (A_Group,
                       Complement_Identifier_Array.Index ("gaston"), Ok);
    if Ok then
        Put_Line ("Le complement n'etait pas encore insere !");
    else
        Put_Line ("Le complement etait deja insere !");
    end if;

    Group.Put_Subject (A_Group,
                       Complement_Identifier_Array.Index ("cuisine"), Ok);
    if Ok then
        Put_Line ("Le complement n'etait pas encore insere !");
    else
        Put_Line ("Le complement etait deja insere !");
    end if;

    Group.Put_Subject (A_Group,
                       Complement_Identifier_Array.Index ("table"), Ok);
    if Ok then
        Put_Line ("Le complement n'etait pas encore insere !");
    else
        Put_Line ("Le complement etait deja insere !");
    end if;

    Put_Line ("list done : " & Boolean'Image (Group.Done (A_Group)));

    Group.Init (A_Group);  
    Put_Line ("list done : " & Boolean'Image (Group.Done (A_Group)));
    while not Group.Done (A_Group) loop
        Put (Group.Value (A_Group) & ", ");
        Group.Next (A_Group);
    end loop;
    New_Line;

    Group.Show (A_Group);

end Test_Group;

E3 Meta Data

    nblk1=4
    nid=4
    hdr6=6
        [0x00] rec0=20 rec1=00 rec2=01 rec3=04a
        [0x01] rec0=1e rec1=00 rec2=03 rec3=01a
        [0x02] rec0=13 rec1=00 rec2=02 rec3=000
        [0x03] rec0=04 rec1=25 rec2=02 rec3=042
    tail 0x21748a1f2865039f9f620 0x42a00088462060003
Free Block Chain:
  0x4: 0000  00 00 00 06 80 03 20 64 65 03 bb 90 04 00 00 00  ┆       de       ┆