DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦86ac4cd51⟧ TextFile

    Length: 1316 (0x524)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Text_Io;
package body Object is

    function Create (Ident_Class : Class; Ident_Object : Integer)
                    return Reference is
        Result : Reference;
    begin
        Result.Id_Class := Ident_Class;
        Result.Id_Object := Ident_Object;
        return (Result);
    end Create;

    procedure Copy (Source : Reference; Target : in out Reference) is
    begin
        Target.Id_Class := Source.Id_Class;
        Target.Id_Object := Source.Id_Object;
    end Copy;

    function Get_Value (From_Object : Reference) return Integer is
    begin
        return (From_Object.Id_Object);
    end Get_Value;

    function Get_Class (From_Object : Reference) return Class is
    begin
        return (From_Object.Id_Class);
    end Get_Class;

    procedure In_Text (The_Object : Reference) is
    begin
        Text_Io.Put_Line ("Objet est de " &
                          Class'Image (Get_Class (The_Object)) & " et son id " &
                          Integer'Image (Get_Value (The_Object)));

    end In_Text;

    function Equal (A, B : Object.Reference) return Standard.Boolean is
    begin
        if A.Id_Class = B.Id_Class and A.Id_Object = B.Id_Object then
            return (Standard.True);
        else
            return (Standard.False);  
        end if;
    end Equal;
end Object;