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

Function xnXmlReadTextAsInt

Source/OpenNI/XnXml.cpp:203–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203XnStatus xnXmlReadTextAsInt(const TiXmlElement* pElem, XnInt* pnValue)
204{
205 if (sscanf(pElem->GetText(), "%d", pnValue) == 0)
206 {
207 XN_LOG_WARNING_RETURN(XN_STATUS_CORRUPT_FILE, XN_MASK_OPEN_NI,
208 "Invalid '%s' xml entry - text should be a number (line %u, col %u)!",
209 pElem->Value(), pElem->Row(), pElem->Column());
210 }
211
212 return (XN_STATUS_OK);
213}
214

Callers 1

xnXmlReadQueryFunction · 0.85

Calls 4

GetTextMethod · 0.80
RowMethod · 0.80
ColumnMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected