|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Porte, seg_04ccae, seg_04cd8f
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Text_Io;
package body Porte is
Porte_Taille_Error : exception;
procedure Set (La_Porte : out Object;
Nom_De_Porte : String;
Numero_De_Lecteur : Natural) is
Dernier_Char : Natural;
begin
Dernier_Char := Nom_De_Porte'Last;
if (Dernier_Char > 30) then
raise Porte_Taille_Error;
end if;
La_Porte.Nom_Porte (1 .. Dernier_Char) := Nom_De_Porte;
La_Porte.Dernier_Char := Dernier_Char;
La_Porte.Numero_Lecteur := Numero_De_Lecteur;
exception
when Porte_Taille_Error =>
Text_Io.Put_Line
("Taille maximum du nom de la Porte: 30 Caracteres");
end Set;
procedure Get (La_Porte : in Object;
Nom_Porte : out String;
D_Char : out Natural) is
begin
Nom_Porte (1 .. La_Porte.Dernier_Char) :=
La_Porte.Nom_Porte (1 .. La_Porte.Dernier_Char);
D_Char := La_Porte.Dernier_Char;
end Get;
function Get (La_Porte : in Object) return String is
begin
return La_Porte.Nom_Porte (1 .. La_Porte.Dernier_Char);
end Get;
function Longueur_Name (La_Porte : in Object) return Natural is
begin
return La_Porte.Dernier_Char;
end Longueur_Name;
function Get (La_Porte : in Object) return Natural is
begin
return La_Porte.Numero_Lecteur;
end Get;
function Image (La_Porte : in Object) return String is
begin
return String'("Porte :" &
La_Porte.Nom_Porte (1 .. La_Porte.Dernier_Char) &
", lecteur :" &
Natural'Image (La_Porte.Numero_Lecteur));
end Image;
end Porte;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=1d rec1=00 rec2=01 rec3=076
[0x01] rec0=1b rec1=00 rec2=02 rec3=000
tail 0x217540d06874f6e7c8ca5 0x42a00088462060003