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

Function xnSetGlobalErrorState

Source/OpenNI/XnOpenNI.cpp:1513–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1511}
1512
1513void xnSetGlobalErrorState(XnContext* pContext, XnStatus errorState)
1514{
1515 if (pContext->globalErrorState != errorState)
1516 {
1517 if (errorState == XN_STATUS_OK)
1518 {
1519 xnLoggerInfo(g_logger, "Context has returned to normal state.");
1520 }
1521 else
1522 {
1523 xnLoggerInfo(g_logger, "Context has entered error state: %s", xnGetStatusString(errorState));
1524 }
1525
1526 pContext->globalErrorState = errorState;
1527 pContext->globalErrorChangeEvent.Raise(errorState);
1528 }
1529}
1530
1531void XN_CALLBACK_TYPE xnNodeErrorStateChanged(XnNodeHandle hNode, void* /*pCookie*/)
1532{

Calls 2

xnGetStatusStringFunction · 0.85
RaiseMethod · 0.45

Tested by

no test coverage detected