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

⟦c881dfa5d⟧ TextFile

    Length: 1534 (0x5fe)
    Types: TextFile
    Names: »B«

Derivation

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

TextFile

with Text_Io;

package body Unparser is


    procedure Create (Name : in String) is

    begin
        Current_Col := 1;
        Fichier_Io.Create (Fichier_Source, Text_Io.Out_File, Name);
        Fichier_Io.Set_Col (Fichier_Source,
                            Text_Io.Positive_Count (Current_Col));
    end Create;

    procedure Put (Item : String) is
    begin

        Fichier_Io.Put (Fichier_Source, Item);
    end Put;  
    procedure Put (Item : Integer) is
    begin

        Fichier_Io.Put (Fichier_Source, Item);
    end Put;

    procedure Put_Line (Item : String) is
    begin
        Fichier_Io.Put_Line (Fichier_Source, Item);  
        Fichier_Io.Set_Col (Fichier_Source,
                            Text_Io.Positive_Count (Current_Col));
    end Put_Line;


    procedure Set_Col (To : Natural := 0) is
    begin
        Current_Col := Current_Col + To;
        Fichier_Io.Set_Col (Fichier_Source,
                            Text_Io.Positive_Count (Current_Col));
    end Set_Col;

    procedure Unset_Col (To : Natural := 0) is
    begin  
        if Current_Col > To then
            Current_Col := Current_Col - To;
            Fichier_Io.Unset_Col (Fichier_Source,
                                  Text_Io.Positive_Count (Current_Col));
        end if;
    end Unset_Col;

    procedure Open (Name : in String) is
    begin
        Fichier_Io.Open (Fichier_Source, Name);
    end Open;

    procedure Close (Name : in String) is
    begin
        Fichier_Io.Close (Fichier_Source);
    end Close;

end Unparser;