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

⟦c6ceef9fd⟧ Ada Source

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

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Util_String;

package body Acces_68 is

    package Us renames Util_String;

    procedure Create (O : in out Object;
                      Zone : Zone_68.T_Zone;
                      Plage : T_Plage;
                      Groupe : Groupe_68.T_Groupe) is
    begin
        Set_Zone (O, Zone);
        Set_Plage (O, Plage);
        Set_Groupe (O, Groupe);
    end Create;


    procedure Set_Zone (O : in out Object; Zone : Zone_68.T_Zone) is
    begin
        O.Zone := Zone;
    end Set_Zone;


    procedure Set_Plage (O : in out Object; Plage : T_Plage) is
    begin
        O.Plage := Plage;
    end Set_Plage;


    procedure Set_Groupe (O : in out Object; Groupe : Groupe_68.T_Groupe) is
    begin
        O.Groupe := Groupe;
    end Set_Groupe;


    function Get_Zone (O : Object) return Zone_68.T_Zone is
    begin
        return O.Zone;
    end Get_Zone;


    function Get_Plage (O : Object) return Plage_68.T_Plage is
    begin
        return O.Plage;
    end Get_Plage;


    function Get_Groupe (O : Object) return Groupe_68.T_Groupe is
    begin
        return O.Groupe;
    end Get_Groupe;


    function Image (O : Object) return String is
    begin
        return (Debut_Acces &
                Us.Suppression_Espace_Left (Natural'Image (Get_Zone (O))) &
                Sep_Acces &
                Us.Suppression_Espace_Left (Natural'Image (Get_Plage (O))) &
                Sep_Acces &
                Us.Suppression_Espace_Left (Natural'Image (Get_Groupe (O))) &
                Sep_Acces &
                Fin_Acces);
    end Image;


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


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

        Create (O => O,
                Zone => Natural'Value (S (P1 + 1 .. P2 - 1)),
                Plage => Natural'Value (S (P2 + 1 .. P3 - 1)),
                Groupe => Natural'Value (S (P3 + 1 .. P4 - 1)));

        Der_Car := P5;
    end Value;
end Acces_68;

E3 Meta Data

    nblk1=4
    nid=2
    hdr6=6
        [0x00] rec0=2b rec1=00 rec2=01 rec3=076
        [0x01] rec0=25 rec1=00 rec2=03 rec3=016
        [0x02] rec0=0e rec1=00 rec2=04 rec3=000
        [0x03] rec0=04 rec1=9d rec2=44 rec3=242
    tail 0x2154a353687706710bd24 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 02 2f 80 10 65 62 75 74 5f 41 63 63 65 73  ┆   /  ebut_Acces┆