22 #ifndef _XN_STRINGS_HASH_H 23 #define _XN_STRINGS_HASH_H 46 static XnInt32
Compare(
const XnChar*
const& key1,
const XnChar*
const& key2)
48 return strcmp(key1, key2);
66 XnChar* pcKey = (XnChar*)Value;
77 return (
const XnChar*
const&)Value;
82 return (
const XnChar*&)Value;
90 #define XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(decl, ValueType, ClassName, ValueTranslator) \ 91 XN_DECLARE_HASH_DECL(decl, const XnChar*, ValueType, ClassName, XnStringsKeyTranslator, ValueTranslator, XnStringsKeyManager) \ 97 #define XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR(ValueType, ClassName, ValueTranslator) \ 98 XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(, ValueType, ClassName, ValueTranslator) 104 #define XN_DECLARE_STRINGS_HASH_DECL(decl, ValueType, ClassName) \ 105 XN_DECLARE_DEFAULT_VALUE_TRANSLATOR_DECL(decl, ValueType, XN_DEFAULT_TRANSLATOR_NAME(ClassName)) \ 106 XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(decl, ValueType, ClassName, XN_DEFAULT_TRANSLATOR_NAME(ClassName)) \ 112 #define XN_DECLARE_STRINGS_HASH(ValueType, ClassName) \ 113 XN_DECLARE_STRINGS_HASH_DECL(, ValueType, ClassName) 118 #endif //_XN_STRINGS_HASH_H static XnInt32 Compare(const XnChar *const &key1, const XnChar *const &key2)
Definition: XnStringsHash.h:46
static XnValue CreateValueCopy(const XnChar *const &orig)
Definition: XnStringsHash.h:55
static XnValue GetAsValue(const XnChar *const &orig)
Definition: XnStringsHash.h:70
static void FreeValue(XnValue &Value)
Definition: XnStringsHash.h:64
Definition: XnStringsHash.h:52
XN_C_API XnUInt32 XN_C_DECL xnOSStrLen(const XnChar *cpStr)
void * XnValue
Definition: XnDataTypes.h:36
static XnHashValue Hash(const XnChar *const &key)
Definition: XnStringsHash.h:37
XN_C_API void XN_C_DECL xnOSFree(const void *pMemBlock)
Definition: XnStringsHash.h:34
XN_C_API void *XN_C_DECL xnOSMalloc(const XnSizeT nAllocSize)
XN_C_API XnStatus XN_C_DECL xnOSStrCopy(XnChar *cpDestString, const XnChar *cpSrcString, const XnUInt32 nDestLength)
#define XN_DECLARE_STRINGS_HASH(ValueType, ClassName)
Definition: XnStringsHash.h:112
XnUInt8 XnHashValue
Definition: XnHash.h:46
static const XnChar *const & GetFromValue(const XnValue &Value)
Definition: XnStringsHash.h:75
static const XnChar *& GetFromValue(XnValue &Value)
Definition: XnStringsHash.h:80
XN_C_API XnStatus XN_C_DECL xnOSStrCRC32(const XnChar *cpString, XnUInt32 *nCRC32)