DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦d3c6b46c9⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package My_Message, seg_055c88, seg_055c91

Derivation

└─⟦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⟧ 

E3 Source Code



with Bounded_String;
with Text_Io;

package My_Message is

    subtype My_String is Bounded_String.Variable_String (255);

    type Kind_Of_Message is (Registration, Unregistration, Request, Forward,
                             Forward_Reply, Forward_Filtration, Publication,
                             Publication_Filter, Unpublication_Filter,
                             Unpublication, Subscription, Unsubscription,
                             Filtration, Unfiltration, Reply,
                             Reply_Error, Reply_Subscription,
                             Reply_Filtration, Content, Notification, Query);

    type Object (Operation : Kind_Of_Message := Registration) is private;

    function Initialize (Op : Kind_Of_Message;
                         Cont : My_String;
                         Req_I : Positive := Positive'Last;
                         L_I : My_String;  
                         R_I : My_String) return Object;

    function Initialize (Op : Kind_Of_Message;
                         Cont : My_String;
                         Req_I : Positive := Positive'Last;
                         L_I : My_String) return Object;

    function Image (Mess : Object) return My_String;
    function Value (Mess : My_String) return Object;

    function Get_Operation (Mess : Object) return Kind_Of_Message;
    function Get_Content (Mess : Object) return My_String;
    function Get_Request_Identifier (Mess : Object) return Positive;
    function Get_Local_Identifier (Mess : Object) return My_String;
    function Get_Remote_Identifier (Mess : Object) return My_String;

    procedure Send (Mess : in out Object; Rem_Id : My_String);
    procedure Receive (Mess : out Object; Local_Id : My_String);

    package Kind_Of_Mess_Io is new Text_Io.Enumeration_Io (Kind_Of_Message);

private

    type Object (Operation : Kind_Of_Message := Registration) is
        record

            Content : My_String;  
            Request_Identifier : Positive;
            Local_Identifier : My_String;

            case Operation is
                when Request | Reply | Forward | Reply_Filtration =>
                    Remote_Identifier : My_String;
                when others =>
                    null;
            end case;

        end record;

end My_Message;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=19 rec1=00 rec2=01 rec3=020
        [0x01] rec0=02 rec1=00 rec2=02 rec3=01e
        [0x02] rec0=1a rec1=00 rec2=03 rec3=008
        [0x03] rec0=0a rec1=00 rec2=04 rec3=000
    tail 0x21760efa087c05c7dac14 0x42a00088462060003