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

Function xnLogBCSetSeverityFilter

Source/OpenNI/XnLog.cpp:997–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997static XnStatus xnLogBCSetSeverityFilter(XnLogSeverity nMinSeverity)
998{
999 LogData& logData = LogData::GetInstance();
1000 if ((logData.defaultMinSeverity & XN_LOG_BC_MASK_OFF_FLAG) != 0)
1001 {
1002 nMinSeverity = XnLogSeverity(nMinSeverity | XN_LOG_BC_MASK_OFF_FLAG);
1003 }
1004
1005 logData.SetMinSeverityGlobally(nMinSeverity);
1006 xnLogFilterChanged();
1007 return (XN_STATUS_OK);
1008}
1009
1010XN_C_API XnBool xnLogIsEnabled(const XnChar* csLogMask, XnLogSeverity nSeverity)
1011{

Callers 3

xnLogInitFromINIFileFunction · 0.85
xnLogInitFromXmlFileFunction · 0.85
xnLogSetSeverityFilterFunction · 0.85

Calls 3

XnLogSeverityEnum · 0.85
xnLogFilterChangedFunction · 0.85

Tested by

no test coverage detected