KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Wide.h
Go to the documentation of this file.
1 #ifndef WIDE_H_
2 #define WIDE_H_
3 
11 #include <iostream>
12 #include <fstream>
13 #include <sstream>
14 #include <string>
15 
16 #ifdef USE_UNICODE
17 
18 #define CERR std::wcerr
19 #define COUT std::wcout
20 #define CIN std::wcin
21 
22 typedef wchar_t Char;
23 
24 #define String std::wstring
25 
26 #define W(X) L ## X
27 
28 #else
29 
30 #define CERR std::cerr
31 #define COUT std::cout
32 #define CIN std::cin
33 
34 typedef char Char;
35 
36 #define String std::string
37 
38 #define OStream std::ostream
39 #define IStream std::istream
40 #define OFStream std::ofstream
41 #define IFStream std::ifstream
42 
43 #define OStringStream std::ostringstream
44 
45 #define W(X) X
46 
47 #endif /* USE_UNICODE */
48 
49 #endif /* WIDE_H */
char Char
Definition: Wide.h:34