|
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 - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Groupe_68, seg_04e204
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Util_String; package body Groupe_68 is package Us renames Util_String; procedure Create (O : in out Object; Nom : String; Numero : T_Groupe) is begin Set_Numero (O, Numero); Set_Nom (O, Nom); end Create; function Image (O : Object) return String is begin return (Debut_Groupe & Get_Nom (O) & Sep_Groupe & Us.Suppression_Espace_Left (Natural'Image (Get_Numero (O))) & Sep_Groupe & Fin_Groupe); 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 : Natural; begin Us.String_Contient (S, Debut_Groupe, P1); Us.Position (S (P1 + 1 .. S'Last), Sep_Groupe, P2); Us.Position (S (P2 + 1 .. S'Last), Sep_Groupe, P3); Us.String_Contient (S (P3 + 1 .. S'Last), Fin_Groupe, P4); Create (O, S (P1 + 1 .. P2 - 1), Natural'Value (S (P2 + 1 .. P3 - 1))); Der_Car := P4; end Value; function Get_Numero (O : Object) return T_Groupe is begin return O.Numero; end Get_Numero; function Get_Nom (O : Object) return String is begin return Us.Suppression_Espace_Right (O.Nom); end Get_Nom; procedure Set_Numero (O : in out Object; Numero : T_Groupe) is begin O.Numero := Numero; end Set_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; end Groupe_68;
nblk1=4 nid=4 hdr6=6 [0x00] rec0=25 rec1=00 rec2=01 rec3=048 [0x01] rec0=21 rec1=00 rec2=02 rec3=03e [0x02] rec0=06 rec1=00 rec2=03 rec3=000 [0x03] rec0=04 rec1=9b rec2=29 rec3=242 tail 0x21549ee6c876a5f90db1b 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 00 00 d3 80 07 3a 3d 20 4e 6f 6d 3b 07 00 41 ┆ := Nom; A┆