|
|
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: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Object, seg_054709
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Registrated_Object, Registered_Object_State, Method;
with Text_Io;
use Registrated_Object;
with B_Constant;
with Parametre;
with Bls_Constant;
with Utils;
with Transport_Defs;
with Byte_Defs;
with Parametre_Defs;
with Liste_Parametre;
procedure Test_Object is
Meth, New_Meth, New_Method : Method.Object;
N : Parametre.Variable_String;
N1 : String (1 .. 4) := "toto";
N2 : String (1 .. 5) := "prems";
N3 : String (1 .. 4) := "deux";
Sid1 : String (1 .. 6) := "ichbin";
Sid2 : String (1 .. 6) := "dubist";
Id1 : Parametre_Defs.Identificator;
Id2 : Parametre_Defs.Identificator;
Snew_Id : String (1 .. 6) := "new_id";
New_Id : Parametre_Defs.Identificator;
Liste1 : Liste_Parametre.List;
Liste : Liste_Parametre.List;
Object : Registrated_Object.Object;
Result : Boolean;
Sock : Parametre.Variable_String;
Host : Parametre.Variable_String;
begin N := Parametre.Value (N1);
Id1 := Parametre_Defs.Identificator (Sid1);
Id2 := Parametre_Defs.Identificator (Sid2);
Liste := Liste_Parametre.Make (Parametre.Value (N2), Liste);
Liste := Liste_Parametre.Make (Parametre.Value (N3), Liste);
Liste1 := Liste_Parametre.Make (Parametre.Value (Sid1), Liste);
Liste1 := Liste_Parametre.Make (Parametre.Value (N2), Liste);
Liste1 := Liste_Parametre.Make (Parametre.Value (Sid2), Liste);
Method.Init (Meth, N, Liste, Liste1);
Text_Io.Put_Line (Method.Image (Meth));
Method.Add_Subscripted_Object (Meth, Id1);
Method.Add_Subscripted_Object (Meth, Id2);
Method.Add_Filtration_Object (Meth, Id1);
Method.Add_Filtration_Object (Meth, Id2);
Method.Init (New_Meth, Parametre.Value ("zorglubmeth"), Liste1, Liste);
Text_Io.Put_Line (Method.Image (New_Meth));
Method.Add_Subscripted_Object (New_Meth, Id1);
Method.Add_Subscripted_Object (New_Meth, Id2);
Method.Add_Filtration_Object (New_Meth, Id1);
Method.Add_Filtration_Object (New_Meth, Id2);
Sock := Parametre.Value
(Utils.Byte_String_To_String
(Byte_Defs.Byte_String (Bls_Constant.Orb_Socket)));
Host := Parametre.Value
(Utils.Byte_String_To_String
(Byte_Defs.Byte_String (Bls_Constant.Orb_Host)));
Init (Object, Parametre.Value ("Date"), Sock, Host, Result);
Text_Io.Put_Line (Image (Object));
Add_Method (Object, Meth);
Add_Method (Object, New_Meth);
New_Meth := Get_Method (Object, Parametre.Value ("toto"));
Text_Io.Put_Line (Method.Image (New_Meth));
Text_Io.Put_Line (Image (Object));
if Is_Method (Object, Parametre.Value ("toto")) then
--Text_Io.Put_Line ("found the method");
--Remove_Method (Object, Parametre.Value ("toto"));
Text_Io.Put_Line (Image (Object));
New_Method := Get_Method (Object, Parametre.Value ("toto"));
New_Id := Parametre_Defs.Identificator (Snew_Id);
Method.Add_Subscripted_Object (New_Method, New_Id);
Text_Io.Put_Line ("new_method = " & Method.Image (New_Method));
Text_Io.Put_Line ("object =" & Image (Object));
Remove_Method (Object, Parametre.Value ("toto"));
Text_Io.Put_Line ("object1 =" & Image (Object));
Add_Method (Object, New_Method);
Text_Io.Put_Line ("object2 =" & Image (Object));
end if;
Text_Io.Put_Line ("fini object");
end Test_Object;
nblk1=4
nid=0
hdr6=8
[0x00] rec0=27 rec1=00 rec2=01 rec3=002
[0x01] rec0=17 rec1=00 rec2=02 rec3=008
[0x02] rec0=15 rec1=00 rec2=03 rec3=080
[0x03] rec0=13 rec1=00 rec2=04 rec3=001
tail 0x2175d864087b8851064ab 0x42a00088462060003