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

Function xnContextRunXmlScript

Source/OpenNI/XnOpenNI.cpp:339–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339XN_C_API XnStatus xnContextRunXmlScript(XnContext* pContext, const XnChar* xmlScript, XnEnumerationErrors* pErrors)
340{
341 XnStatus nRetVal = XN_STATUS_OK;
342
343 XnNodeHandle hScriptNode;
344 nRetVal = xnContextRunXmlScriptEx(pContext, xmlScript, pErrors, &hScriptNode);
345 XN_IS_STATUS_OK(nRetVal);
346
347 // take ownership of created node
348 xnMarkOwnedNode(pContext, hScriptNode);
349 xnProductionNodeRelease(hScriptNode);
350
351 return (XN_STATUS_OK);
352}
353
354XN_C_API XnStatus xnInitFromXmlFileEx(const XnChar* strFileName, XnContext** ppContext, XnEnumerationErrors* pErrors, XnNodeHandle* phScriptNode)
355{

Callers 1

RunXmlScriptFunction · 0.85

Calls 3

xnContextRunXmlScriptExFunction · 0.85
xnMarkOwnedNodeFunction · 0.85
xnProductionNodeReleaseFunction · 0.85

Tested by

no test coverage detected