DocAda(tm) is a productivity tool of KSCE

Prev | Up | Next | Back | Forward
About DocAda Light: Preface / Preliminary / Help / TOC / Copyright
DocAda Online at the Ada Home: Complete RM95 / Updates / News

A.10.5 Operations on Columns, Lines, and Pages

Static Semantics

The subprograms described in this subclause provide for explicit control of line and page structure; they operate either on the file given as the first parameter, or, in the absence of such a file parameter, on the appropriate (input or output) current default file. The exception Status_Error is propagated by any of these subprograms if the file to be used is not open.

   
       procedure New_Line(File : in File_Type; Spacing : in Positive_Count := 1);
       procedure New_Line(Spacing : in Positive_Count := 1);
   
       procedure Skip_Line(File  : in File_Type; Spacing : in Positive_Count := 1);
       procedure Skip_Line(Spacing : in Positive_Count := 1);
    
       function End_Of_Line(File : in File_Type) return Boolean;
       function End_Of_Line return Boolean;
    
       procedure New_Page(File : in File_Type);
       procedure New_Page;
    
       procedure Skip_Page(File : in File_Type);
       procedure Skip_Page;
    
       function End_Of_Page(File : in File_Type) return Boolean;
       function End_Of_Page return Boolean;
    
       function End_Of_File(File : in File_Type) return Boolean;
       function End_Of_File return Boolean;
    
       procedure Set_Col(File : in File_Type; To : in Positive_Count);
       procedure Set_Col(To   : in Positive_Count);
    
       procedure Set_Line(File : in File_Type; To : in Positive_Count);
       procedure Set_Line(To   : in Positive_Count);
    
       function Col(File : in File_Type) return Positive_Count;
       function Col return Positive_Count;
    
       function Line(File : in File_Type) return Positive_Count;
       function Line return Positive_Count;
    
       function Page(File : in File_Type) return Positive_Count;
       function Page return Positive_Count;

The column number, line number, or page number are allowed to exceed Count'Last (as a consequence of the input or output of sufficiently many characters, lines, or pages). These events do not cause any exception to be propagated. However, a call of Col, Line, or Page propagates the exception Layout_Error if the corresponding number exceeds Count'Last.

About DocAda Light: Preface / Preliminary / Help / TOC / Copyright
DocAda Online at the Ada Home: Complete RM95 / Updates / News
Prev | Up | Next | Back | Forward


Copyright © 1994-1997 by Kempe Software Capital Enterprises. All Rights Reserved. For comments on this DocAda(tm) hypertext document, please write to KSCE, at docada@ksce.com