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

⟦9bb540a6c⟧ Ada Source

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

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



package body Zone is

    Libelle_Zone : constant String := "Zone : ";

    function Image (O : Object) return String is
    begin
        return (Libelle_Zone & O.Nom & " " & Natural'Image (O.Numero));
    end Image;


    function Value (S : String) return Object is
        O : Object;
        D, F : Natural;
    begin
        D := S'First + Libelle_Zone'Length;
        F := D + 29;
        O.Nom := S (D .. F);
        D := F + 2;  
        F := S'Last;
        O.Numero := Natural'Value (S (D .. F));
        return O;
    end Value;


    procedure Create (O : in out Object; Nom : String; Numero : Natural) is
    begin  
        if Numero not in 0 .. Max_Code_Zone then
            raise Code_Zone_Error;
        end if;
        O.Numero := Numero;
        if Nom'Length > 30 then
            O.Nom := Nom (Nom'First .. Nom'First + 29);
        else  
            declare
                S : String (1 .. 30) := (1 .. 30 => ' ');
            begin
                O.Nom (1 .. Nom'Length) := Nom;
            end;
        end if;
    end Create;


    function Get_Nom (O : Object) return String is
    begin
        return O.Nom;
    end Get_Nom;


    function Get_Id (O : Object) return Natural is
    begin
        return O.Numero;
    end Get_Id;
end Zone;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=25 rec1=00 rec2=01 rec3=008
        [0x01] rec0=12 rec1=00 rec2=02 rec3=001
    tail 0x21755211487638a5f83e0 0x42a00088462060003