-
Notifications
You must be signed in to change notification settings - Fork 10
/
a-wtcoio.ads
55 lines (49 loc) · 1.57 KB
/
a-wtcoio.ads
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Types;
with Ada.Text_IO.Complex_IO;
generic
with package Complex_Types is new Numerics.Generic_Complex_Types (<>);
package Ada.Wide_Text_IO.Complex_IO is
-- use Complex_Types;
-- for renaming
package Strings is new Text_IO.Complex_IO (Complex_Types);
Default_Fore : Field
renames Strings.Default_Fore; -- 2
Default_Aft : Field
renames Strings.Default_Aft; -- Complex_Types.Real'Digits - 1
Default_Exp : Field
renames Strings.Default_Exp; -- 3
procedure Get (
File : File_Type; -- Input_File_Type
Item : out Complex_Types.Complex;
Width : Field := 0)
renames Strings.Get;
procedure Get (
Item : out Complex_Types.Complex;
Width : Field := 0)
renames Strings.Get;
procedure Put (
File : File_Type; -- Output_File_Type
Item : Complex_Types.Complex;
Fore : Field := Default_Fore;
Aft : Field := Default_Aft;
Exp : Field := Default_Exp)
renames Strings.Put;
procedure Put (
Item : Complex_Types.Complex;
Fore : Field := Default_Fore;
Aft : Field := Default_Aft;
Exp : Field := Default_Exp)
renames Strings.Put;
procedure Get (
From : Wide_String;
Item : out Complex_Types.Complex;
Last : out Positive)
renames Strings.Overloaded_Get;
procedure Put (
To : out Wide_String;
Item : Complex_Types.Complex;
Aft : Field := Default_Aft;
Exp : Field := Default_Exp)
renames Strings.Overloaded_Put;
end Ada.Wide_Text_IO.Complex_IO;