| 1313 | } |
| 1314 | |
| 1315 | void SimXMLDocument::addData(const char* text) |
| 1316 | { |
| 1317 | if(m_paNode.empty()) |
| 1318 | return; |
| 1319 | |
| 1320 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1321 | tinyxml2::XMLNode* pNode = m_paNode[iFinalElement]; |
| 1322 | if(!pNode) |
| 1323 | return; |
| 1324 | |
| 1325 | tinyxml2::XMLText* cText = m_qDocument->NewText(text); |
| 1326 | pNode->InsertEndChild( cText ); |
| 1327 | } |
| 1328 | |
| 1329 | DefineEngineMethod( SimXMLDocument, addData, void, ( const char* text ),, |
| 1330 | "@brief Add the given text as a child of current Element.\n\n" |
no test coverage detected