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

⟦6306b6252⟧ TextFile

    Length: 1636 (0x664)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦e24fb53b7⟧ 
            └─⟦this⟧ 

TextFile

with Slot;
package body Fqa_Frames is

    use Fqa_Kbs.Kbs.Fact_Base.Class;

    function Question_Slots_Image
                (For_Slot : Query_Slots; Value : Slot.Object) return String is
    begin  
        case For_Slot is
            when Number =>
                return Integer'Image (Slot.Get (Value));
            when others =>
                return "Illegal question slot";
        end case;
    end Question_Slots_Image;


    function Answer_Slots_Image
                (For_Slot : Answer_Slots; Value : Slot.Object) return String is
    begin
        case For_Slot is
            when Number =>
                return Integer'Image (Slot.Get (Value));
            when Fqa_Frames.Value =>
                return Integer'Image (Slot.Get (Value));
            when Erasable =>
                return Boolean'Image (Slot.Get (Value));
            when others =>
                return "Illegal answer slot";
        end case;
    end Answer_Slots_Image;



    procedure Put_Question is new Questions.Generic_Put
                                     (Image => Question_Slots_Image);


    procedure Put_Answer is new Answers.Generic_Put
                                   (Image => Answer_Slots_Image);


    procedure Put (The_Fact : Fact_Name; Where : Output_Stream.Object) is
        The_Class : Class_Names := Class_Name_Of (The_Fact);
    begin
        case The_Class is  
            when Question =>
                Put_Question (The_Fact, Where);
            when Answer =>
                Put_Answer (The_Fact, Where);
            when Nothing =>
                null;
        end case;
    end Put;
end Fqa_Frames;