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

⟦594a78cdd⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Zone_68, seg_051661

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

package body Zone_68 is

    package Us renames Util_String;


    function Image (O : Object) return String is
    begin
        return (Debut_Zone & Get_Nom (O) & Sep_Zone &
                Us.Suppression_Espace_Left (Natural'Image (Get_Numero (O))) &
                Sep_Zone & Fin_Zone);
    end Image;

    procedure Value (S : String; O : in out Object; Der_Car : in out Natural) is
        P1, P2, P3, P4 : Natural;
    begin
        Us.String_Contient (S, Debut_Zone, P1);
        Us.Position (S (P1 + 1 .. S'Last), Sep_Zone, P2);
        Us.Position (S (P2 + 1 .. S'Last), Sep_Zone, P3);
        Us.String_Contient (S (P3 + 1 .. S'Last), Fin_Zone, P4);

        Create (O, S (P1 + 1 .. P2 - 1), Natural'Value (S (P2 + 1 .. P3 - 1)));

        Der_Car := P4;

    end Value;

    function Value (S : String) return Object is
        O : Object;
        Der_Car : Natural;
    begin
        Value (S, O, Der_Car);
        return O;
    end Value;


    procedure Create (O : in out Object; Nom : String; Numero : T_Zone) is
    begin  
        Set_Numero (O, Numero);
        Set_Nom (O, Nom);
    end Create;


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


    function Get_Numero (O : Object) return T_Zone is
    begin
        return O.Numero;
    end Get_Numero;

    procedure Set_Nom (O : in out Object; Nom : String) is
    begin
        if Nom'Length > Max_Taille_Nom then
            O.Nom := Nom (Nom'First .. Nom'First + Max_Taille_Nom - 1);
        else
            O.Nom (O.Nom'First .. O.Nom'First + Nom'Length - 1) := Nom;
            O.Nom (O.Nom'First + Nom'Length .. Max_Taille_Nom) :=
               (O.Nom'First + Nom'Length .. Max_Taille_Nom => ' ');
        end if;
    end Set_Nom;

    procedure Set_Numero (O : in out Object; Numero : T_Zone) is
    begin
        O.Numero := Numero;
    end Set_Numero;

end Zone_68;

E3 Meta Data

    nblk1=4
    nid=3
    hdr6=6
        [0x00] rec0=23 rec1=00 rec2=01 rec3=010
        [0x01] rec0=23 rec1=00 rec2=02 rec3=004
        [0x02] rec0=04 rec1=00 rec2=04 rec3=000
        [0x03] rec0=05 rec1=51 rec2=69 rec3=442
    tail 0x21758d710879a5c462065 0x42a00088462060003
Free Block Chain:
  0x3: 0000  00 00 00 a8 80 16 20 4e 75 6d 65 72 6f 20 69 6e  ┆       Numero in┆