OSDN Git Service

* approved by rth
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-wtcoio.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT RUNTIME COMPONENTS                          --
4 --                                                                          --
5 --           A D A . W I D E _ T E X T _ IO . C O M P L E X _ I O           --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --                                                                          --
10 -- This specification is adapted from the Ada Reference Manual for use with --
11 -- GNAT.  In accordance with the copyright of that document, you can freely --
12 -- copy and modify this specification,  provided that if you redistribute a --
13 -- modified version,  any changes that you have made are clearly indicated. --
14 --                                                                          --
15 ------------------------------------------------------------------------------
16
17 with Ada.Numerics.Generic_Complex_Types;
18
19 generic
20    with package Complex_Types is new Ada.Numerics.Generic_Complex_Types (<>);
21
22 package Ada.Wide_Text_IO.Complex_IO is
23
24    use Complex_Types;
25
26    Default_Fore : Field := 2;
27    Default_Aft  : Field := Real'Digits - 1;
28    Default_Exp  : Field := 3;
29
30    procedure Get
31      (File  : in  File_Type;
32       Item  : out Complex;
33       Width : in  Field := 0);
34
35    procedure Get
36      (Item  : out Complex;
37       Width : in  Field := 0);
38
39    procedure Put
40      (File : in File_Type;
41       Item : in Complex;
42       Fore : in Field := Default_Fore;
43       Aft  : in Field := Default_Aft;
44       Exp  : in Field := Default_Exp);
45
46    procedure Put
47      (Item : in Complex;
48       Fore : in Field := Default_Fore;
49       Aft  : in Field := Default_Aft;
50       Exp  : in Field := Default_Exp);
51
52    procedure Get
53      (From : in  Wide_String;
54       Item : out Complex;
55       Last : out Positive);
56
57    procedure Put
58      (To   : out Wide_String;
59       Item : in  Complex;
60       Aft  : in  Field := Default_Aft;
61       Exp  : in  Field := Default_Exp);
62
63 end Ada.Wide_Text_IO.Complex_IO;