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

Function xnLogIsEnabled

Source/OpenNI/XnLog.cpp:1010–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008}
1009
1010XN_C_API XnBool xnLogIsEnabled(const XnChar* csLogMask, XnLogSeverity nSeverity)
1011{
1012 XnLogger* pLogger = xnLogGetLoggerForMask(csLogMask, FALSE);
1013 if (pLogger == NULL)
1014 {
1015 // no such logger exists. Mask uses default severity
1016 LogData& logData = LogData::GetInstance();
1017 return (nSeverity >= logData.defaultMinSeverity);
1018 }
1019 else
1020 {
1021 return (nSeverity >= pLogger->nMinSeverity);
1022 }
1023}
1024
1025XN_C_API void xnLogWrite(const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFile, XnUInt32 nLine, const XnChar* csFormat, ...)
1026{

Callers 4

xnLogWriteFunction · 0.85
xnLogWriteNoEntryFunction · 0.85
xnLogWriteBinaryDataFunction · 0.85
xnMarkFPSFrameFunction · 0.85

Calls 1

xnLogGetLoggerForMaskFunction · 0.85

Tested by

no test coverage detected