--------------------------------------------------------------------------- Code ---------------------------------------------------------------------------
| 92 | // Code |
| 93 | //--------------------------------------------------------------------------- |
| 94 | XN_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 | |
| 113 | XN_C_API XnBool XN_C_DECL xnLogIsDumpMaskEnabled(const XnChar* strDumpMask) |
| 114 | { |
no test coverage detected