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

⟦ae98e4542⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Porteur, seg_04ccb0, seg_04cd90

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

package body Porteur is

    Porteur_Taille_Error : exception;

    procedure Set (Le_Porteur : out Object;
                   Nom_Du_Porteur : String;
                   Numero_De_Carte : Natural) is
        Dernier_Char : Natural;
    begin
        Dernier_Char := Nom_Du_Porteur'Last;
        if (Dernier_Char > 30) then
            raise Porteur_Taille_Error;
        end if;
        Le_Porteur.Nom_Porteur (1 .. Dernier_Char) := Nom_Du_Porteur;
        Le_Porteur.Numero_Carte := Numero_De_Carte;
        Le_Porteur.Dernier_Char := Dernier_Char;
    exception
        when Porteur_Taille_Error =>
            Text_Io.Put_Line
               ("Taille maximum du nom du Porteur: 30 characteres");
    end Set;

    function Image (Le_Porteur : in Object) return String is
    begin
        return String'("Nom du Porteur :" &
                       Le_Porteur.Nom_Porteur (1 .. Le_Porteur.Dernier_Char) &
                       " ; Numero de Carte :" &
                       Natural'Image (Le_Porteur.Numero_Carte));
    end Image;

    function Longueur_Name (Le_Porteur : in Object) return Natural is
    begin
        return Le_Porteur.Dernier_Char;
    end Longueur_Name;

    procedure Get (Le_Porteur : in out Object;
                   Nom_Porteur : out String;
                   D_Char : out Natural;
                   Num_Carte : out Natural) is
    begin
        Nom_Porteur (1 .. Le_Porteur.Dernier_Char) :=
           Le_Porteur.Nom_Porteur (1 .. Le_Porteur.Dernier_Char);
        D_Char := Le_Porteur.Dernier_Char;
        Num_Carte := Le_Porteur.Numero_Carte;
    end Get;


    function Get (Le_Porteur : in Object) return Natural is
    begin
        return Le_Porteur.Numero_Carte;
    end Get;


    function Get (Le_Porteur : in Object) return String is
    begin
        return Le_Porteur.Nom_Porteur (1 .. Le_Porteur.Dernier_Char);
    end Get;

end Porteur;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=046
        [0x01] rec0=21 rec1=00 rec2=02 rec3=000
    tail 0x217540d0e874f6e80ae3c 0x42a00088462060003