| 201 | } |
| 202 | |
| 203 | XnStatus 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 |
no test coverage detected