DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦f108e2d4f⟧ TextFile

    Length: 3544 (0xdd8)
    Types: TextFile
    Names: »B«

Derivation

└─⟦5829e5ed5⟧ Bits:30000534 8mm tape, Rational 1000, RCI 2_0_5
    └─ ⟦c9a165082⟧ »DATA« 
        └─⟦c3895f76e⟧ 
            └─⟦this⟧ 

TextFile

with Log;
with Operational_Characteristics;
with Profile;
with Program;
with Rci_Customization;
with Rci_Customization_Interface;
with Semantic_Characteristics;
with Simple_Status;  
with Telnet_Characteristics;
with Universal;

package body Template is

    package Op renames Operational_Characteristics;
    package Tc renames Telnet_Characteristics;
    package Sc renames Semantic_Characteristics;
    package Predefined renames Sc.Predefined_Environment_Characteristics;
    package Pragmas renames Sc.Pragma_Characteristics;
    package Attributes renames Sc.Attribute_Characteristics;
    package Rep_Specs renames Sc.Rep_Spec_Characteristics;
    package Rci renames Rci_Customization_Interface;
    package Ss renames Simple_Status;
    package Checking renames Sc.Checking;
    package Text renames Sc.Text;

    T_Name : constant String := ""; --[Your target key goes here]

    The_Operation_Mode : Op.Operation_Mode := Op.Interactive;
    -- The default operation mode is the interactive mode

    function Get_Transfer_Type return Op.Transfer_Type is separate;
    function Get_Pragma_Info return Pragmas.Object is separate;
    function Get_Rep_Spec_Info return Rep_Specs.Object is separate;
    function Get_Predefined_Info return Predefined.Object is separate;
    function Get_Attribute_Info return Attributes.Object is separate;
    function Get_Operational_Info return Op.Object is separate;  
    function Get_Telnet_Info return Tc.Object is separate;

    procedure Register (Batch_Mode : Boolean := False;
                        Allow_Standard_Rebuild : Boolean := False) is

        Status : Simple_Status.Condition;

        function Operation_Mode return String is
        begin
            if Batch_Mode then
                return "_batch";
            end if;
            return "";
        end Operation_Mode;
    begin


        Rci.Initialize (T_Name, Status);
        if Ss.">" (Ss.Severity (Status), Ss.Normal) then
            Log.Put_Line (Ss.Name (Status), Profile.Warning_Msg);
            if Ss.">" (Ss.Severity (Status), Ss.Warning) then
                return;
            end if;
        end if;

        if Batch_Mode then
            The_Operation_Mode := Op.Batch;
        end if;
        -- Override the default operation mode

        Rci_Customization.Register
           (Target => T_Name,
            The_Operational_Characteristics => Get_Operational_Info,
            The_Predefined_Environment_Characteristics => Get_Predefined_Info,
            The_Pragma_Characteristics => Get_Pragma_Info,
            The_Attribute_Characteristics => Get_Attribute_Info,
            The_Rep_Spec_Characteristics => Get_Rep_Spec_Info,
            The_Telnet_Characteristics => Get_Telnet_Info,
            Allow_Standard_Rebuild => Allow_Standard_Rebuild);

        --[Replace >>your_subsystem<< with subsystem name]
        Program.Run_Job
           ("""!targets.implementation.rci_customization.>>your_subsystem<<'view.units""" &
            ".register_all_extensions(""" & T_Name & """);",
            Context =>
               "!targets.implementation.rci_customization.>>your_subsystem<<'view",
            Options =>
               "Name => (" & T_Name & "_Extensions_" &  
                  Op.Transfer_Type'Image (Get_Transfer_Type) &
                  Operation_Mode & "), " &
                  "output => !machine.temporary.rci_library_register_log");
    end Register;

    procedure Unregister is
    begin
        Rci_Customization.Unregister (T_Name);
    end Unregister;


end Template;