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

⟦f068c07dc⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Remote_Links, seg_021229

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 Io;  
with String_Utilities;
with Time_Utilities;

package body Remote_Links is

    package Naming renames Directory.Naming;
    package Su     renames String_Utilities;


    function File_Name (In_View : Directory.Object) return String is
    begin
        return Naming.Get_Full_Name (In_View) &
                  ".State.Tool_State.Remote_Links";
    end File_Name;


    function Match_Unit (The_Entry1 : Remote_Link;  
                         The_Entry2 : Remote_Link) return Boolean is
    begin
        if Su.Equal (Naming.Get_Simple_Name (The_Entry1.Unit),
                     Naming.Get_Simple_Name (The_Entry2.Unit)) then
            return True;
        else
            return False;
        end if;
    end Match_Unit;


    function Match_View (The_Entry1 : Remote_Link;  
                         The_Entry2 : Remote_Link) return Boolean is
    begin
        if Directory."=" (The_Entry1.View, The_Entry2.View) then
            return True;
        else
            return False;
        end if;
    end Match_View;


    function Is_Empty (Element : Remote_Link) return Boolean is
    begin
        if Directory."=" (Element.Unit, Directory.Nil) or else
           Su.Equal (Naming.Get_Simple_Name (Element.Unit),
                     "{[<KEY_NOT_FOUND>]}") then
            return True;
        end if;

        return False;
    end Is_Empty;


    procedure Print_Element (Element : Remote_Link) is
    begin
        Io.Put_Line ("Unit   => " & Naming.Unique_Simple_Name (Element.Unit));
        Io.Put_Line ("  View => " & Naming.Get_Full_Name (Element.View));
        Io.Put_Line ("  Time => " &
                     Time_Utilities.Image
                        (Time_Utilities.Convert_Time (Element.Time)));
    end Print_Element;

end Remote_Links;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=23 rec1=00 rec2=01 rec3=010
        [0x01] rec0=1d rec1=00 rec2=02 rec3=000
    tail 0x2171d5976838d6bb5b894 0x42a00088462065003