* @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
| 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. |
nothing calls this directly
no test coverage detected