| 1297 | } |
| 1298 | |
| 1299 | void SimXMLDocument::addData(const char* text) |
| 1300 | { |
| 1301 | if(m_paNode.empty()) |
| 1302 | return; |
| 1303 | |
| 1304 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1305 | TiXmlElement* pNode = m_paNode[iFinalElement]; |
| 1306 | if(!pNode) |
| 1307 | return; |
| 1308 | |
| 1309 | TiXmlText cText(text); |
| 1310 | pNode->InsertEndChild( cText ); |
| 1311 | } |
| 1312 | |
| 1313 | DefineEngineMethod( SimXMLDocument, addData, void, ( const char* text ),, |
| 1314 | "@brief Add the given text as a child of current Element.\n\n" |
no test coverage detected