Revision | caf0fdcafe278634ba84a13882a6d2c02ad79c26 (tree) |
---|---|
Time | 2012-09-08 21:26:46 |
Author | h2so5 <h2so5@git....> |
Commiter | h2so5 |
UISuper.cppのyuidoc用コメントを削除
一部ファイルの文字コードを変更
ログを標準出力に常時流すよう変更
@@ -2,16 +2,6 @@ | ||
2 | 2 | // UISuper.cpp |
3 | 3 | // |
4 | 4 | |
5 | -/** | |
6 | -* @module global | |
7 | -* @submodule UI | |
8 | - */ | |
9 | - | |
10 | -/** | |
11 | - * @class Base | |
12 | - * @namespace UI | |
13 | - */ | |
14 | - | |
15 | 5 | #include "UISuper.hpp" |
16 | 6 | |
17 | 7 | int UISuper::max_focus_index = 0; |
@@ -7,7 +7,7 @@ | ||
7 | 7 | #include "unicode.hpp" |
8 | 8 | |
9 | 9 | #ifndef _WIN32 |
10 | -#define OutputDebugString(str) std::cout << str | |
10 | +#define OutputDebugString(str) (str) | |
11 | 11 | #endif |
12 | 12 | |
13 | 13 | class Logger { |
@@ -114,6 +114,7 @@ class Logger { | ||
114 | 114 | void Log(const tstring& prefix, const tstring& format) { |
115 | 115 | auto out = prefix + format + _T("\n"); |
116 | 116 | OutputDebugString(out.c_str()); |
117 | + std::wcout << unicode::ToWString(out); | |
117 | 118 | ofs_ << unicode::ToString(out); |
118 | 119 | } |
119 | 120 |
@@ -121,6 +122,7 @@ class Logger { | ||
121 | 122 | void Log(const tstring& prefix, const tstring& format, const T1& t1) { |
122 | 123 | auto out = prefix + (tformat(format) % t1).str() + _T("\n"); |
123 | 124 | OutputDebugString(out.c_str()); |
125 | + std::wcout << unicode::ToWString(out); | |
124 | 126 | ofs_ << unicode::ToString(out); |
125 | 127 | } |
126 | 128 |
@@ -128,6 +130,7 @@ class Logger { | ||
128 | 130 | void Log(const tstring& prefix, const tstring& format, const T1& t1, const T2& t2) { |
129 | 131 | auto out = prefix + (tformat(format) % t1 % t2).str() + _T("\n"); |
130 | 132 | OutputDebugString(out.c_str()); |
133 | + std::wcout << unicode::ToWString(out); | |
131 | 134 | ofs_ << unicode::ToString(out); |
132 | 135 | } |
133 | 136 |
@@ -135,6 +138,7 @@ class Logger { | ||
135 | 138 | void Log(const tstring& prefix, const tstring& format, const T1& t1, const T2& t2, const T3& t3) { |
136 | 139 | auto out = prefix + (tformat(format) % t1 % t2 % t3).str() + _T("\n"); |
137 | 140 | OutputDebugString(out.c_str()); |
141 | + std::wcout << unicode::ToWString(out); | |
138 | 142 | ofs_ << unicode::ToString(out); |
139 | 143 | } |
140 | 144 |
@@ -142,6 +146,7 @@ class Logger { | ||
142 | 146 | void Log(const tstring& prefix, const tstring& format, const T1& t1, const T2& t2, const T3& t3, const T4& t4) { |
143 | 147 | auto out = prefix + (tformat(format) % t1 % t2 % t3 % t4).str() + _T("\n"); |
144 | 148 | OutputDebugString(out.c_str()); |
149 | + std::wcout << unicode::ToWString(out); | |
145 | 150 | ofs_ << unicode::ToString(out); |
146 | 151 | } |
147 | 152 |