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

Method LoadScriptFromString

Source/OpenNI/XnXmlScriptNode.cpp:935–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935XnStatus XnXmlScriptNode::LoadScriptFromString(const XnChar* strScript)
936{
937 if (!m_doc.Parse(strScript))
938 {
939 XN_LOG_ERROR_RETURN(XN_STATUS_CORRUPT_FILE, XN_MASK_OPEN_NI,
940 "Failed loading xml: %s [row %d, column %d]",
941 m_doc.ErrorDesc(), m_doc.ErrorRow(), m_doc.ErrorCol());
942 }
943
944 return XN_STATUS_OK;
945}
946
947XnStatus XnXmlScriptNode::Run(xn::NodeInfoList& createdNodes, xn::EnumerationErrors& errors)
948{

Callers 1

xnLoadScriptFromStringFunction · 0.45

Calls 4

ParseMethod · 0.80
ErrorDescMethod · 0.80
ErrorRowMethod · 0.80
ErrorColMethod · 0.80

Tested by

no test coverage detected