00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef __STRMAP_H__
00014 #define __STRMAP_H__
00015
00016
00017 #if defined(_WIN32) || defined(_WIN32_WCE) || defined(_XBOX)
00018 #pragma warning( disable : 4786 )
00019 #endif // defined(_WIN32) || defined(_WIN32_WCE) || defined(_XBOX)
00020
00021 #ifdef FTK_KERNEL
00022 #include <map>
00023 #endif // FTK_KERNEL
00024
00025 #include <SIBCUtil.h>
00026
00035 struct StrLessPred
00036 {
00043 inline bool operator () ( const SI_Char* in_psz1, const SI_Char* in_psz2 ) const
00044 {
00045 return (_SI_STRCMP(in_psz1, in_psz2) < 0);
00046 }
00047 };
00048
00062 #ifdef FTK_KERNEL
00063 template <class ValueType>
00064 class SI_StrMap : public std::map<const SI_Char*, ValueType, StrLessPred>
00065 {
00066 };
00067
00068 #endif // FTK_KERNEL
00069 #endif //__STRMAP_H__