86 XN_C_API void XN_C_DECL _xnDumpFileWriteBuffer(
XnDumpFile* pFile,
const void* pBuffer, XnUInt32 nBufferSize);
96 XN_C_API void XN_C_DECL _xnDumpFileWriteString(
XnDumpFile* pFile,
const XnChar* strFormat, ...);
105 #define xnDumpFileWriteBuffer(pFile, pBuffer, nBufferSize) \ 106 if ((pFile) != NULL) \ 108 _xnDumpFileWriteBuffer(pFile, pBuffer, nBufferSize); \ 111 #define xnDumpFileClose(pFile) \ 112 if ((pFile) != NULL) \ 114 _xnDumpFileClose(pFile); \ 118 #if XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_WIN32_VAARGS_STYLE 119 #define xnDumpFileWriteString(pFile, strFormat, ...) \ 120 if ((pFile) != NULL) \ 122 _xnDumpFileWriteString(pFile, strFormat, __VA_ARGS__); \ 124 #elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_GCC_VAARGS_STYLE 125 #define xnDumpFileWriteString(pFile, strFormat, ...) \ 126 if ((pFile) != NULL) \ 128 _xnDumpFileWriteString(pFile, strFormat, ##__VA_ARGS__);\ 130 #elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_ARC_VAARGS_STYLE 131 #define xnDumpFileWriteString(pFile, strFormat, ...) \ 132 if ((pFile) != NULL) \ 134 _xnDumpFileWriteString(pFile, strFormat); \ 136 #elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_NO_VAARGS 137 #define xnDumpFileWriteString(pFile, strFormat, arg) \ 138 if ((pFile) != NULL) \ 140 _xnDumpFileWriteString(pFile, strFormat,arg); \ 143 #error Xiron Log - Unknown VAARGS type! 155 typedef struct XnDump
157 XN_FILE_HANDLE hFile;
160 const XnDump XN_DUMP_CLOSED = { XN_INVALID_FILE_HANDLE };
162 XN_C_API void XN_API_DEPRECATED(
"Use xnDumpFileX methods instead") XN_C_DECL xnDumpInit(XnDump* pDump,
const XnChar* csDumpMask,
const XnChar* csHeader,
const XnChar* csFileNameFormat, ...);
163 XN_C_API void XN_API_DEPRECATED(
"Use xnDumpFileX methods instead") XN_C_DECL xnDumpForceInit(XnDump* pDump,
const XnChar* csHeader,
const XnChar* csFileNameFormat, ...);
164 XN_C_API void XN_API_DEPRECATED(
"Use xnDumpFileX methods instead") XN_C_DECL xnDumpClose(XnDump* pDump);
165 XN_C_API void XN_API_DEPRECATED(
"Use xnDumpFileX methods instead") XN_C_DECL xnDumpWriteBufferImpl(XnDump dump,
const void* pBuffer, XnUInt32 nBufferSize);
166 XN_C_API void XN_API_DEPRECATED(
"Use xnDumpFileX methods instead") XN_C_DECL xnDumpWriteStringImpl(XnDump dump,
const XnChar* csFormat, ...);
167 XN_C_API void XN_API_DEPRECATED(
"Use xnDumpFileX methods instead") XN_C_DECL xnDumpFlush(XnDump dump);
169 #define xnDumpWriteBuffer(dump, pBuffer, nBufferSize) \ 170 if (dump.hFile != XN_INVALID_FILE_HANDLE) \ 172 xnDumpWriteBufferImpl(dump, pBuffer, nBufferSize); \ 175 #if XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_WIN32_VAARGS_STYLE 176 #define xnDumpWriteString(dump, csFormat, ...) \ 177 if ((dump).hFile != XN_INVALID_FILE_HANDLE) { \ 178 xnDumpWriteStringImpl((dump), csFormat, __VA_ARGS__); \ 180 #elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_GCC_VAARGS_STYLE 181 #define xnDumpWriteString(dump, csFormat, ...) \ 182 if ((dump).hFile != XN_INVALID_FILE_HANDLE) { \ 183 xnDumpWriteStringImpl((dump), csFormat, ##__VA_ARGS__); \ 185 #elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_ARC_VAARGS_STYLE 186 #define xnDumpWriteString(dump, csFormat...) \ 187 if ((dump).hFile != XN_INVALID_FILE_HANDLE) { \ 188 xnDumpWriteStringImpl((dump), csFormat); \ 190 #elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_NO_VAARGS 191 #define xnDumpWriteString(dump, csFormat, arg) \ 192 if ((dump).hFile != XN_INVALID_FILE_HANDLE) { \ 193 xnDumpWriteStringImpl((dump), csFormat, arg); \ 196 #error Xiron Log - Unknown VAARGS type! 199 #endif // #ifndef __XN_NO_BC__ 201 #endif // __XN_DUMP_H__ XN_C_API XnStatus XN_C_DECL xnDumpSetMaskState(const XnChar *strMask, XnBool bEnabled)
XnUInt32 XnStatus
Definition: XnStatus.h:33
XN_C_API XnBool XN_C_DECL xnLogIsDumpMaskEnabled(const XnChar *strDumpMask)
XN_C_API XnDumpFile *XN_C_DECL xnDumpFileOpen(const XnChar *strDumpName, const XnChar *strNameFormat,...)
XN_C_API XnDumpFile *XN_C_DECL xnDumpFileOpenEx(const XnChar *strDumpName, XnBool bForce, XnBool bSessionDump, const XnChar *strNameFormat,...)
struct XnDumpFile XnDumpFile
Definition: XnDump.h:34