#include "XnPlatform.h"
#include "XnStatus.h"
Go to the source code of this file.
◆ xnDumpFileClose
#define xnDumpFileClose |
( |
|
pFile | ) |
|
Value: if ((pFile) != NULL) \
{ \
_xnDumpFileClose(pFile); \
pFile = NULL; \
} \
◆ xnDumpFileWriteBuffer
#define xnDumpFileWriteBuffer |
( |
|
pFile, |
|
|
|
pBuffer, |
|
|
|
nBufferSize |
|
) |
| |
Value: if ((pFile) != NULL) \
{ \
_xnDumpFileWriteBuffer(pFile, pBuffer, nBufferSize); \
} \
◆ XnDumpFile
◆ xnDumpFileOpen()
XN_C_API XnDumpFile* XN_C_DECL xnDumpFileOpen |
( |
const XnChar * |
strDumpName, |
|
|
const XnChar * |
strNameFormat, |
|
|
|
... |
|
) |
| |
Opens a file for writing dump.
- Parameters
-
strDumpName | [in] Name of the dump mask this file belongs to. |
strNameFormat | [in] A format string for the name of the file. |
- Returns
- a file handle for writing data. The file should be closed using xnDumpFileClose().
◆ xnDumpFileOpenEx()
XN_C_API XnDumpFile* XN_C_DECL xnDumpFileOpenEx |
( |
const XnChar * |
strDumpName, |
|
|
XnBool |
bForce, |
|
|
XnBool |
bSessionDump, |
|
|
const XnChar * |
strNameFormat, |
|
|
|
... |
|
) |
| |
Opens a file for writing dump using some advanced options.
You would usually prefer to use xnDumpFileOpen().
- Parameters
-
strDumpName | [in] Name of the dump mask this file belongs to. |
bForce | [in] When TRUE, file will be created even if dump is currently off. |
bSessionDump | [in] When TRUE, file will be created with current session timestamp as a prefix to its name. |
strNameFormat | [in] A format string for the name of the file. |
- Returns
- a file handle for writing data. The file should be closed using xnDumpFileClose().
◆ xnDumpSetMaskState()
XN_C_API XnStatus XN_C_DECL xnDumpSetMaskState |
( |
const XnChar * |
strMask, |
|
|
XnBool |
bEnabled |
|
) |
| |
Configures if a specific dump mask is enabled.
- Parameters
-
strMask | [in] The mask to set. |
bEnabled | [in] TRUE to enable this dump, FALSE otherwise. |
◆ xnLogIsDumpMaskEnabled()
XN_C_API XnBool XN_C_DECL xnLogIsDumpMaskEnabled |
( |
const XnChar * |
strDumpMask | ) |
|
This function checks if a dump mask is enabled
- Parameters
-
strDumpMask | [in] The mask that should be checked. |