SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送
メインページ   名前空間一覧   クラス階層   構成   ファイル一覧   名前空間メンバ   構成メンバ   ファイルメンバ  

stdafx.h

解説を見る。
00001 
00002 
00003 #ifndef _DKUTIL_STDAFX__
00004 #define _DKUTIL_STDAFX__
00005 
00006 
00007 #include "dkutilConfig.h"
00008 
00009 //**********************************************************
00010 //コンパイルオプションのエラーチェック
00011 //**********************************************************
00012 #ifdef USE_DKINGYO_OBJECT_TEST //テスト関数を使うのに・・・
00013 #   ifndef USE_DKINGYO_MEMORYLEAK_CHECK //メモリリークチェックを有効にしていなかったら
00014 #       error "If you use a USE_DKINGYO_OBEJCT_TEST option, please confirm USE_DKINGYO_MEMORYLEAK_CHECK."
00015 #   endif
00016 #endif
00017 
00018 
00019 
00020 #ifndef WIN32 //Win32じゃなかったら
00021 #   error "this library is only for win32.Please comment this out, if you want to compile."
00022 // あまり使われないヘッダは読み込まない
00023 //# define WIN32_LEAN_AND_MEAN
00024 #else
00025 //Boostの設定
00026 #   define __WIN32__ //これでいいのだろうか?
00027 #endif
00028 
00029 
00030 
00031 
00032 //**********************************************************
00033 //STLPort関連の設定
00034 //**********************************************************
00035 
00036 #ifdef USE_DKINGYO_STLPORT //STLPortを使います!!
00037 
00038 #   define _STLP_USE_STATIC_LIB //STLPortのSTATICLIBRARYを使うらしい
00039 
00040 #   ifdef NDEBUG
00041 #       undef _STLP_DEBUG//STLPortはデバックモードでビルドしない
00042 #       undef _STLP_DEBUG_ALLOC//デバックアロケータ?を使用しない。
00043 #   else
00044 #       define _STLP_DEBUG 1
00045 #   endif
00046 
00047 // SGI I/O stream は使わない
00048 #   define _STLP_NO_OWN_IOSTREAMS 1
00049 #   ifdef USE_DKINGYO_MULTITHREAD_BUILD
00050 #       define _STLP_NO_THREDS//スレッドを使う
00051 #   else
00052 #       define _STLP_NO_THREDS 1 // シングルスレッド
00053 //#define _STLP_STATIC_CONST_INIT_BUG これは何?
00054 #   endif //end of USE_DKINGYO_MULTITHREAD_BUILD
00055 #endif //end of USE_DKINGYO_STLPORT 
00056 
00057 
00058 
00059 
00060 
00061 //**********************************************************
00062 //警告対策
00063 //**********************************************************
00064 #ifdef USE_DKINGYO_WARNING_MEASURE
00065 
00066 // 不要な警告を抑制
00067 #   if _MSC_VER > 1000
00068 
00069 #       pragma warning(disable : 4200)      // size 0 array (テンプレート引数で警告される)
00070 #       pragma warning(disable : 4290)      // C++ 例外指定は無視される
00071 #       pragma warning(disable : 4511)      // can't generate copy constructor (so what?)
00072 #       pragma warning(disable : 4512)      // can't generator assign operator (so what?)
00073 #       pragma warning(disable : 4710)      // function couldn't be inlined
00074 #       pragma warning(disable : 4786)      // truncate debug symbol
00075 #   endif // _MSC_VER > 1000
00076 
00077 #endif // end of USE_DKINGYO_WARNING_MEASURE
00078 
00079 
00080 //**********************************************************
00081 //メモリリーク関連の設定
00082 //**********************************************************
00083 
00084 #ifdef USE_DKINGYO_MEMORYLEAK_CHECK
00085 
00086 #   include <crtdbg.h>
00087 // デバッグビルド時には、デバッグ用メモリアロケータを使う
00088 # define _CRTDBG_MAP_ALLOC
00089 
00090 // STLport の node allocator を使うと、誤まってリークが報告されてしまうため
00091 #   ifdef USE_DKINGYO_STLPORT 
00092 #       define _STLP_USE_MALLOC
00093 #   endif
00094 
00095 #endif
00096 
00097 //**********************************************************
00098 //ブースト軍
00099 //**********************************************************
00100 //ぶうすと使います〜〜
00101 #include <boost/pool/pool.hpp>
00102 #include <boost/pool/object_pool.hpp>
00103 #include <boost/utility.hpp>
00104 //#include <boost/property_map.hpp>
00105 
00106 //bjam "-sTOOLS=msvc-stlport" "-sBUILD=debug release <runtime-link>static/dynamic"
00107 //bjam "-sTOOLS=msvc" "-sBUILD=debug release <runtime-link>static/dynamic"
00108 
00109 
00110 //**********************************************************
00111 //基本的ヘッダ軍
00112 //**********************************************************
00113 #include <windows.h>
00114 
00115 #include <math.h>
00116 #include <LIMITS.H>
00117 //#include <new>
00118 
00119 
00120 
00121 
00122 //**********************************************************
00123 //各種ライブラリ軍
00124 //**********************************************************
00125 #pragma comment(lib,"winmm")
00126 
00127 
00128 
00129 
00130 //**********************************************************
00131 //STL軍(STLPortを使ってください〜〜!!
00132 //**********************************************************
00133 #include <string>
00134 #include <deque>
00135 #include <map>
00136 #include <list>
00137 #include <set>
00138 #include <vector>
00139 
00140 
00141 //STLPortのハッシュ系のものに呪いをかけておく^^;
00142 #ifdef USE_DKINGYO_STLPORT
00143 #   include <hash_map>
00144 #   include <hash_set>
00145 #   define DKUTIL_HASHMAP std::hash_map
00146 #   define DKUTIL_HASHSET std::hash_set
00147 #else
00148 #   define DKUTIL_HASHMAP std::map
00149 #   define DKUTIL_HASHSET std::set
00150 #   undef std
00151 #endif
00152 
00153 //定数を定義する
00155 #define DKINGYO_ULONGLONG_MAX 18446744073709551615 
00156 
00157 #define DKINGYO_LONGLONG_MAX 9223372036854775807 
00158 
00159 #define DKINGYO_LONGLONG_MIN -9223372036854775808 
00160 #endif //end of  _DKUTIL_STDAFX__ defined

dKingyoUtilClass (dkutil)に対してMon Jun 9 01:32:41 2003に生成されました。 doxygen1.3