|
|
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 Lecteur, seg_04cc8c, seg_04cd70
└─⟦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 Lecteur is
Taille_Type_Lecteur_Error : exception;
procedure Set (Un_Lecteur : out Lecteur.Object;
Type_Lecteur : String;
Numero : Natural;
Les_Para : Parametres.Object) is
Dernier_Char : Natural;
begin
Dernier_Char := Type_Lecteur'Length;
if (Dernier_Char > 30) then
raise Taille_Type_Lecteur_Error;
end if;
Un_Lecteur.Dernier_Char := Dernier_Char;
Un_Lecteur.Type_Lecteur (1 .. Dernier_Char) :=
Type_Lecteur (1 .. Dernier_Char);
Un_Lecteur.Numero := Numero;
Un_Lecteur.Les_Parametres := Les_Para;
exception
when Taille_Type_Lecteur_Error =>
Text_Io.Put_Line ("type du lecteur : 30 carateres maximum);");
end Set;
procedure Get (Un_Lecteur : in Lecteur.Object;
Type_Lecteur : out String;
Numero : out Natural;
Les_Para : out Parametres.Object) is
begin
Type_Lecteur (1 .. Un_Lecteur.Dernier_Char) :=
Un_Lecteur.Type_Lecteur (1 .. Un_Lecteur.Dernier_Char);
Numero := Un_Lecteur.Numero;
Les_Para := Un_Lecteur.Les_Parametres;
end Get;
function Get (Un_Lecteur : in Lecteur.Object) return Natural is
begin
return Natural'(Un_Lecteur.Numero);
end Get;
function Image (Un_Lecteur : Lecteur.Object) return String is
begin
return String'("Type de Lecteur : " &
Un_Lecteur.Type_Lecteur (1 .. Un_Lecteur.Dernier_Char) &
"; Numero : " & Natural'Image (Un_Lecteur.Numero) & " " &
Parametres.Image (Un_Lecteur.Les_Parametres));
end Image;
end Lecteur;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=1d rec1=00 rec2=01 rec3=046
[0x01] rec0=17 rec1=00 rec2=02 rec3=000
tail 0x217540ca2874f6e3cc7b9 0x42a00088462060003