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

Function RunXmlScript

Include/XnCppWrapper.h:8760–8771  ·  view source on GitHub ↗

* @brief Runs an XML script string to build a production graph. * * @param [in] strScript String containing an XML script. * @param [out] scriptNode @ref xn::ScriptNode object as the root to all the nodes * created from the XML file. When no longer needed, the node can * be released, causing all the created nodes to decrement their reference counts. * @param [in

Source from the content-addressed store, hash-verified

8758 * file.
8759 */
8760 inline XnStatus RunXmlScript(const XnChar* strScript, ScriptNode& scriptNode, EnumerationErrors* pErrors = NULL)
8761 {
8762 XnStatus nRetVal = XN_STATUS_OK;
8763
8764 XnNodeHandle hScriptNode;
8765 nRetVal = xnContextRunXmlScriptEx(m_pContext, strScript, pErrors == NULL ? NULL : pErrors->GetUnderlying(), &hScriptNode);
8766 XN_IS_STATUS_OK(nRetVal);
8767
8768 scriptNode.TakeOwnership(hScriptNode);
8769
8770 return (XN_STATUS_OK);
8771 }
8772
8773 /**
8774 * @brief Runs an XML script file to build a production graph.

Callers

nothing calls this directly

Calls 3

xnContextRunXmlScriptExFunction · 0.85
xnContextRunXmlScriptFunction · 0.85
GetUnderlyingMethod · 0.45

Tested by

no test coverage detected