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

Function RunXmlScriptImpl

Source/OpenNI/XnXmlScriptNode.cpp:900–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900XnStatus RunXmlScriptImpl(XnContext* pContext, TiXmlDocument* pDoc, XnNodeInfoList* pCreatedNodes, XnEnumerationErrors* pErrors)
901{
902 XnStatus nRetVal = XN_STATUS_OK;
903
904 TiXmlElement* pRootElem = pDoc->RootElement();
905 if (pRootElem != NULL)
906 {
907 nRetVal = xnLoadLicensesFromXml(pContext, pRootElem);
908 XN_IS_STATUS_OK(nRetVal);
909
910 nRetVal = xnConfigureCreateNodes(pContext, pRootElem, pCreatedNodes, pErrors);
911 XN_IS_STATUS_OK(nRetVal);
912 }
913
914 return (XN_STATUS_OK);
915}
916
917XnXmlScriptNode::XnXmlScriptNode(xn::Context context) : m_context(context)
918{

Callers 1

RunMethod · 0.85

Calls 3

xnLoadLicensesFromXmlFunction · 0.85
xnConfigureCreateNodesFunction · 0.85
RootElementMethod · 0.80

Tested by

no test coverage detected