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

Function xnLogStartNewFile

Source/OpenNI/XnLog.cpp:616–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616XN_C_API XnStatus xnLogStartNewFile()
617{
618 LogData& logData = LogData::GetInstance();
619 if (!logData.fileWriter.IsRegistered())
620 {
621 return XN_STATUS_INVALID_OPERATION;
622 }
623
624 logData.fileWriter.Unregister();
625
626 // reset our session timestamp, a new one will be created
627 logData.strSessionTimestamp[0] = '\0';
628
629 return logData.fileWriter.Register();
630}
631
632XN_C_API XnStatus xnLogClose()
633{

Callers 1

xnLogSetOutputFolderFunction · 0.85

Calls 3

IsRegisteredMethod · 0.45
UnregisterMethod · 0.45
RegisterMethod · 0.45

Tested by

no test coverage detected