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

⟦2d25a5ee8⟧ TextFile

    Length: 1774 (0x6ee)
    Types: TextFile
    Names: »B«

Derivation

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

TextFile

with Tad_Material;


package body Tad_Global is

    procedure Create_New_Station (The_Object : out Object; The_Name : String) is
        New_Name : String (1 .. 20) := (1 .. 20 => ' ');
        Mat_Object : Tad_Material.Object;
    begin
        New_Name (1 .. The_Name'Last) := The_Name;  
        Tad_Material.Create_New_Material (Mat_Object, New_Name);
        The_Object := Object'(New_Name, 0, Mat_Object);
    end Create_New_Station;

    procedure Set_Material_Type (The_Object : in out Object;
                                 Material_Type : Tad_Material.Object) is
    begin
        The_Object.Material_Type := Material_Type;
    end Set_Material_Type;

    procedure Set_Station_Number
                 (The_Object : in out Object; The_Address : Natural) is
    begin
        The_Object.Station := The_Address;
    end Set_Station_Number;

    function Get_Station_Number (The_Object : Object) return Natural is
    begin
        return The_Object.Station;
    end Get_Station_Number;

    procedure Get_Material_Type (The_Object : Object;
                                 The_Material_Type : out Tad_Material.Object) is
    begin
        The_Material_Type := The_Object.Material_Type;
    end Get_Material_Type;

    function Compare_Name (Object1, Object2 : Object) return Integer is
    begin
        if Object1.Name = Object2.Name then
            return 0;
        end if;
        if Object1.Name > Object2.Name then
            return 1;
        else
            return -1;
        end if;
    end Compare_Name;

    function Export_Address_Pointer (The_Object : Object) return Pnatural is
        Export : Pnatural;
    begin
        Export.all := Get_Station_Number (The_Object);
        return Export;
    end Export_Address_Pointer;



end Tad_Global;