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

Function xnLogSetConsoleOutput

Source/OpenNI/XnLog.cpp:658–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658XN_C_API XnStatus xnLogSetConsoleOutput(XnBool bConsoleOutput)
659{
660 XnStatus nRetVal = XN_STATUS_OK;
661
662 LogData& logData = LogData::GetInstance();
663 if (bConsoleOutput)
664 {
665 nRetVal = logData.consoleWriter.Register();
666 XN_IS_STATUS_OK(nRetVal);
667 }
668 else
669 {
670 logData.consoleWriter.Unregister();
671 }
672
673 return XN_STATUS_OK;
674}
675
676XN_C_API XnStatus xnLogSetFileOutput(XnBool bFileOutput)
677{

Callers 5

mainFunction · 0.85
mainFunction · 0.85
xnLogInitFromINIFileFunction · 0.85
xnLogInitFromXmlFileFunction · 0.85
mainFunction · 0.85

Calls 2

RegisterMethod · 0.45
UnregisterMethod · 0.45

Tested by

no test coverage detected