|
|
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 Database_Test, seg_02995a
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Database;
with Method;
with Parameter;
with Signature;
with Text_Io;
use Text_Io;
package body Database_Test is
procedure Start is
P1 : Parameter.Object;
P2 : Parameter.Object;
S : Signature.Object;
M : Method.Object;
Iter : Database.Iterator;
begin
P1 := Parameter.Create
(Name => "message", Class => "string", Value => "hello world");
P2 := Parameter.Create
(Name => "message", Class => "string", Value => "pam");
S := Signature.Create;
Signature.Add (To_Signature => S,
The_Parameter => P1,
At_Position => 1);
Signature.Add (To_Signature => S,
The_Parameter => P2,
At_Position => 2);
M := Method.Create (Name => "Send", Signature => S);
Put_Line (Method.Image (M));
Database.Subscribe (Client => 17, Method => M);
Database.Subscribe (Client => 145, Method => M);
Database.Subscribe (Client => 170, Method => M);
Iter := Database.Subscribers (Method => M);
while not Database.Is_Done (Iter) loop
Put_Line ("client => " & Integer'Image (Database.Value (Iter)));
Database.Next (Iter);
end loop;
end Start;
end Database_Test;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=23 rec1=00 rec2=01 rec3=048
[0x01] rec0=10 rec1=00 rec2=02 rec3=001
tail 0x21521aa0e83d5484341b2 0x42a00088462060003