996
|
1 /*
|
|
2 * BDSM2
|
|
3 * Author: Adam Sawicki
|
|
4 * http://www.regedit.risp.pl
|
|
5 * mailto:regedit@risp.pl
|
|
6 */
|
|
7 #ifndef CONSOLE_H_
|
|
8 #define CONSOLE_H_
|
|
9
|
|
10 class Console
|
|
11 {
|
|
12 private:
|
|
13 char m_Buffer[65536];
|
|
14
|
|
15 public:
|
|
16 // one raw character from input
|
|
17 char InChar();
|
|
18 // one line from input
|
|
19 void InString(string *s);
|
|
20 // one line from input
|
|
21 int InInteger();
|
|
22 // one line from input
|
|
23 double InDouble();
|
|
24
|
|
25 void OutInteger(int x);
|
|
26 void OutDouble(double x);
|
|
27 void OutString(const string &s);
|
|
28 };
|
|
29
|
|
30 extern Console g_Console;
|
|
31
|
|
32 #endif
|