Prev | Up | Next | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help


A.10.5 Operations on Columns, Lines, and Pages

Static Semantics
(1)
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.
(2)
       procedure New_Line(File : in File_Type; Spacing : in Positive_Count := 1);
       procedure New_Line(Spacing : in Positive_Count := 1);
(3)
(4)
(5)
(6)
(7)
       procedure Skip_Line(File  : in File_Type; Spacing : in Positive_Count := 1);
       procedure Skip_Line(Spacing : in Positive_Count := 1);
(8)
(9)
(10)
(11)
(12)
       function End_Of_Line(File : in File_Type) return Boolean;
       function End_Of_Line return Boolean;
(13)
(14)
(15)
       procedure New_Page(File : in File_Type);
       procedure New_Page;
(16)
(17)
(18)
       procedure Skip_Page(File : in File_Type);
       procedure Skip_Page;
(19)
(20)
(21)
       function End_Of_Page(File : in File_Type) return Boolean;
       function End_Of_Page return Boolean;
(22)
(23)
(24)
       function End_Of_File(File : in File_Type) return Boolean;
       function End_Of_File return Boolean;
(25)
(26)
(27)
(28)
       procedure Set_Col(File : in File_Type; To : in Positive_Count);
       procedure Set_Col(To   : in Positive_Count);
(29)
(30)
(31)
(32)
(33)
(34)
(35)
       procedure Set_Line(File : in File_Type; To : in Positive_Count);
       procedure Set_Line(To   : in Positive_Count);
(36)
(37)
(38)
(39)
(40)
(41)
(42)
       function Col(File : in File_Type) return Positive_Count;
       function Col return Positive_Count;
(43)
(44)
(45)
       function Line(File : in File_Type) return Positive_Count;
       function Line return Positive_Count;
(46)
(47)
(48)
       function Page(File : in File_Type) return Positive_Count;
       function Page return Positive_Count;
(49)
(50)
(51)
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.

(52)

Prev | Up | Next | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help

Ada WWW Home -- Email comments, additions, corrections, gripes, kudos, etc. to:

Magnus Kempe -- Magnus.Kempe@di.epfl.ch
Copyright statement
Page last generated: 95-03-12