|
|
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: 4096 (0x1000)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package Fields, seg_0491d9, seg_049375
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Bounded_String, Lists;
-- Gestion d objet liste de types de donnees
-- (Utilisation et instanciation d une liste generique)
-- Une liste contient :
-- * des paires (nom de champ,type du champ) pour un type STRUCTURES
-- * des paires (nom d enumere,type predefini "CONST") pour un type ENUMERE
package Fields is
Max_Field_String : constant Natural := 32;
type Object is private;
type Field_Index is limited private;
Error_Field_Store : exception;
Error_Field_Empty : exception;
Error_Field_Index : exception;
-- CREATE
--Creation d un objet liste
procedure Create (D : in out Object);
-- HAS_FIELD
--Verifie si une liste contient un nom de champs donne en parametre
function Has_Field (D : in Object; Name : in String) return Boolean;
--GET_FIELD_TYPE_BY_NAME
-- renvoie le Type d un champs donne en parametre
function Get_Field_Type_By_Name (D : Object; Name : String) return String;
--DUMP_NUMBER_OF_FIELD
-- renvoie le nombre delement dans une liste (structure ou enumeration)
procedure Dump_Number_Of_Field (D : in Object);
--DUMP_FIELD
-- affichage de toutes les composantes d une liste (structure ou enumeration)
procedure Dump_Fields (D : in Object);
--SURFACE_COPY
-- copie en surface d une liste
procedure Surface_Copy (To_Fields : in out Object; The_Fields : Object);
-- DEEP_COPY
-- copie en profondeur d une liste
procedure Deep_Copy (To_Fields : in out Object; The_Fields : Object);
-- STORE_FIELD
-- ajout d une paire dans une liste
procedure Store_Field (D : in out Object; Aname : String; Atype : String);
-- DISPOSE_OBJECT
-- destruction dune liste
procedure Dispose_Object (D : in out Object);
-- GESTION D UN OBJET ITERATEUR D OBJET LISTE
procedure Open_Field_Indexation (D : Object; I : in out Field_Index);
procedure Next_Field_Index (I : in out Field_Index);
function Get_Indexed_Field_Name (I : Field_Index) return String;
function Get_Indexed_Field_Type (I : Field_Index) return String;
function No_More_Fields (I : Field_Index) return Boolean;
private
type Field is
record
Field_Name : Bounded_String.Variable_String (Max_Field_String);
Field_Type : Bounded_String.Variable_String (Max_Field_String);
end record;
function Isequal (X, Y : in Field) return Boolean;
package Fields_List is new Lists (Itemtype => Field, Equal => Isequal);
type Object is
record
Node : Fields_List.List;
end record;
type Field_Index is
record
Node : Fields_List.Listiter;
end record;
end Fields;
nblk1=3
nid=0
hdr6=6
[0x00] rec0=22 rec1=00 rec2=01 rec3=01e
[0x01] rec0=1b rec1=00 rec2=02 rec3=058
[0x02] rec0=1c rec1=00 rec2=03 rec3=001
tail 0x2174d6e28865b483d10e9 0x42a00088462060003