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

Function RunXmlScriptFromFile

Include/XnCppWrapper.h:8788–8799  ·  view source on GitHub ↗

* @brief Runs an XML script file to build a production graph. * * @param [in] strFileName Name of file containing an XML script. * @param [out] scriptNode 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. * @

Source from the content-addressed store, hash-verified

8786 * description in the XML file, this method creates a @ref xn::ProductionNode object.
8787 */
8788 inline XnStatus RunXmlScriptFromFile(const XnChar* strFileName, ScriptNode& scriptNode, EnumerationErrors* pErrors = NULL)
8789 {
8790 XnStatus nRetVal = XN_STATUS_OK;
8791
8792 XnNodeHandle hScriptNode;
8793 nRetVal = xnContextRunXmlScriptFromFileEx(m_pContext, strFileName, pErrors == NULL ? NULL : pErrors->GetUnderlying(), &hScriptNode);
8794 XN_IS_STATUS_OK(nRetVal);
8795
8796 scriptNode.TakeOwnership(hScriptNode);
8797
8798 return (XN_STATUS_OK);
8799 }
8800
8801 /**
8802 * @brief Shorthand combination of two other initialization methods - @ref Init() and then @ref RunXmlScriptFromFile() -

Callers

nothing calls this directly

Calls 3

GetUnderlyingMethod · 0.45

Tested by

no test coverage detected