87XN_C_API void XN_C_DECL _xnDumpFileWriteBuffer(
XnDumpFile* pFile,
const void* pBuffer, XnUInt32 nBufferSize);
97XN_C_API void XN_C_DECL _xnDumpFileWriteString(
XnDumpFile* pFile,
const XnChar* strFormat, ...);
106#define xnDumpFileWriteBuffer(pFile, pBuffer, nBufferSize) \
107 if ((pFile) != NULL) \
109 _xnDumpFileWriteBuffer(pFile, pBuffer, nBufferSize); \
112#define xnDumpFileClose(pFile) \
113 if ((pFile) != NULL) \
115 _xnDumpFileClose(pFile); \
119#if XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_WIN32_VAARGS_STYLE
120 #define xnDumpFileWriteString(pFile, strFormat, ...) \
121 if ((pFile) != NULL) \
123 _xnDumpFileWriteString(pFile, strFormat, __VA_ARGS__); \
125#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_GCC_VAARGS_STYLE
126 #define xnDumpFileWriteString(pFile, strFormat, ...) \
127 if ((pFile) != NULL) \
129 _xnDumpFileWriteString(pFile, strFormat, ##__VA_ARGS__);\
131#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_ARC_VAARGS_STYLE
132 #define xnDumpFileWriteString(pFile, strFormat, ...) \
133 if ((pFile) != NULL) \
135 _xnDumpFileWriteString(pFile, strFormat); \
137#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_NO_VAARGS
138 #define xnDumpFileWriteString(pFile, strFormat, arg) \
139 if ((pFile) != NULL) \
141 _xnDumpFileWriteString(pFile, strFormat,arg); \
144 #error Xiron Log - Unknown VAARGS type!
158 XN_FILE_HANDLE hFile;
161const XnDump XN_DUMP_CLOSED = { XN_INVALID_FILE_HANDLE };
163XN_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, ...);
164XN_C_API void XN_API_DEPRECATED("Use xnDumpFileX methods instead") XN_C_DECL xnDumpForceInit(XnDump* pDump, const XnChar* csHeader, const XnChar* csFileNameFormat, ...);
165XN_C_API void XN_API_DEPRECATED("Use xnDumpFileX methods instead") XN_C_DECL xnDumpClose(XnDump* pDump);
166XN_C_API void XN_API_DEPRECATED("Use xnDumpFileX methods instead") XN_C_DECL xnDumpWriteBufferImpl(XnDump dump, const
void* pBuffer, XnUInt32 nBufferSize);
167XN_C_API void XN_API_DEPRECATED("Use xnDumpFileX methods instead") XN_C_DECL xnDumpWriteStringImpl(XnDump dump, const XnChar* csFormat, ...);
168XN_C_API void XN_API_DEPRECATED("Use xnDumpFileX methods instead") XN_C_DECL xnDumpFlush(XnDump dump);
170#define xnDumpWriteBuffer(dump, pBuffer, nBufferSize) \
171 if (dump.hFile != XN_INVALID_FILE_HANDLE) \
173 xnDumpWriteBufferImpl(dump, pBuffer, nBufferSize); \
176#if XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_WIN32_VAARGS_STYLE
177 #define xnDumpWriteString(dump, csFormat, ...) \
178 if ((dump).hFile != XN_INVALID_FILE_HANDLE) { \
179 xnDumpWriteStringImpl((dump), csFormat, __VA_ARGS__); \
181#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_GCC_VAARGS_STYLE
182 #define xnDumpWriteString(dump, csFormat, ...) \
183 if ((dump).hFile != XN_INVALID_FILE_HANDLE) { \
184 xnDumpWriteStringImpl((dump), csFormat, ##__VA_ARGS__); \
186#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_ARC_VAARGS_STYLE
187 #define xnDumpWriteString(dump, csFormat...) \
188 if ((dump).hFile != XN_INVALID_FILE_HANDLE) { \
189 xnDumpWriteStringImpl((dump), csFormat); \
191#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_NO_VAARGS
192 #define xnDumpWriteString(dump, csFormat, arg) \
193 if ((dump).hFile != XN_INVALID_FILE_HANDLE) { \
194 xnDumpWriteStringImpl((dump), csFormat, arg); \
197 #error Xiron Log - Unknown VAARGS type!
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:35
XN_C_API XnStatus XN_C_DECL xnDumpSetMaskState(const XnChar *strMask, XnBool bEnabled)
XN_C_API XnBool XN_C_DECL xnLogIsDumpMaskEnabled(const XnChar *strDumpMask)
XnUInt32 XnStatus
Definition XnStatus.h:34