MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnDumpSetMaskState

Function xnDumpSetMaskState

Source/OpenNI/XnDump.cpp:94–111  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Code ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

92// Code
93//---------------------------------------------------------------------------
94XN_C_API XnStatus xnDumpSetMaskState(const XnChar* csMask, XnBool bEnabled)
95{
96 XnStatus nRetVal = XN_STATUS_OK;
97
98 DumpData& dumpData = DumpData::GetInstance();
99
100 if (strcmp(csMask, XN_LOG_MASK_ALL) == 0)
101 {
102 dumpData.SetStateGlobally(bEnabled);
103 }
104 else
105 {
106 nRetVal = dumpData.dumpsState.Set(csMask, bEnabled);
107 XN_IS_STATUS_OK(nRetVal);
108 }
109
110 return (XN_STATUS_OK);
111}
112
113XN_C_API XnBool XN_C_DECL xnLogIsDumpMaskEnabled(const XnChar* strDumpMask)
114{

Callers 3

xnOSLogMemAllocFunction · 0.85
xnLogInitFromXmlFileFunction · 0.85
xnLogCloseFunction · 0.85

Calls 2

SetStateGloballyMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected