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

⟦7db137533⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Object, seg_0366a7, seg_036778

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;
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;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=22 rec1=00 rec2=01 rec3=006
        [0x01] rec0=0e rec1=00 rec2=02 rec3=001
    tail 0x21733668a84df4d7a67e1 0x42a00088462060003