Last change
on this file since 432 was 432, checked in by イグトランス (egtra), 16 years ago |
StreamReaderの完成。StringReaderの追加。
Consoleの追加(現在入力関係の一部のみ)。
|
File size:
783 bytes
|
Line | |
---|
1 | 'Classes/System/Console.ab
|
---|
2 |
|
---|
3 | Namespace System
|
---|
4 |
|
---|
5 | /*
|
---|
6 | @brief コンソール入出力・ウィンドウなどのクラス
|
---|
7 | @date 2008/02/26
|
---|
8 | @auther Egtra
|
---|
9 | */
|
---|
10 | Class Console
|
---|
11 | Public
|
---|
12 | /*
|
---|
13 | @brief 標準入力を設定する
|
---|
14 | @date 2008/02/26
|
---|
15 | @auther Egtra
|
---|
16 | */
|
---|
17 | Static Sub SetIn(newIn As IO.TextReader)
|
---|
18 | If ActiveBasic.IsNothing(newIn) Then
|
---|
19 | Throw New ArgumentNullException("newIn")
|
---|
20 | End If
|
---|
21 | in = newIn
|
---|
22 | End Sub
|
---|
23 | /*
|
---|
24 | @brief 標準入力を取得する
|
---|
25 | @date 2008/02/26
|
---|
26 | @auther Egtra
|
---|
27 | */
|
---|
28 | Static Function In() As IO.TextReader
|
---|
29 | In = in
|
---|
30 | End Function
|
---|
31 |
|
---|
32 | /*
|
---|
33 | @brief 標準入力から1行読み込む
|
---|
34 | @date 2008/02/26
|
---|
35 | @auther Egtra
|
---|
36 | */
|
---|
37 | Static Function ReadLine() As String
|
---|
38 | ReadLine = in.ReadLine()
|
---|
39 | End Function
|
---|
40 | Private
|
---|
41 | Static in = Nothing As IO.TextReader
|
---|
42 | End Class
|
---|
43 |
|
---|
44 | End Namespace 'System
|
---|
Note:
See
TracBrowser
for help on using the repository browser.