MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGCLDefs.h
1 #ifndef __MGCL_DEFS__V8
2 #define __MGCL_DEFS__V8
3 
4 #pragma once
5 
6 // 標準ライブラリのストリームの文字コード対応
7 #include <tchar.h>
8 #include <sstream>
9 
10 
11 //
12 // The following macros are used to enable DLL export/import.
13 // MG_DLL_DECLR for class, global functions, and global valiable values in declaration.
14 #ifdef NO_MGCLDLL
15  // Not DLL.
16 # define MG_DLL_DECLR
17 
18 #else
19 
20 # ifdef MGCLDLL_EXPORTS
21 # define MG_DLL_DECLR __declspec(dllexport)
22 # else // Import DLL.
23 # define MG_DLL_DECLR __declspec(dllimport)
24 # endif// MGCL_IMPORTS
25 
26 #endif //NO_MGCLDLL
27 
28 
29 //To treat UNICODE
30 typedef std::basic_string<TCHAR> tstring;
31 typedef std::basic_ostringstream<TCHAR> tostringstream;
32 typedef std::basic_istringstream<TCHAR> tistringstream;
33 typedef std::basic_ostream<TCHAR> tostream;
34 typedef std::basic_istream<TCHAR> tistream;
35 typedef std::basic_ifstream<TCHAR> tifstream;
36 typedef std::basic_ofstream<TCHAR> tofstream;
37 
38 //{{AFX_INSERT_LOCATION}}
39 // Microsoft Visual C++ は前行の直前に追加の宣言を挿入します。
40 
41 #ifdef _UNICODE
42  #define TCAST const wchar_t*
43  #define COUT std::wcout
44  #define CERR std::wcerr
45 #else
46  #define TCAST const char*
47  #define COUT std::cout
48  #define CERR std::cerr
49 #endif
50 
51 #endif