| 1156 | } |
| 1157 | |
| 1158 | void SimXMLDocument::addText(const char* text) |
| 1159 | { |
| 1160 | if(m_paNode.empty()) |
| 1161 | return; |
| 1162 | |
| 1163 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1164 | TiXmlElement* pNode = m_paNode[iFinalElement]; |
| 1165 | if(!pNode) |
| 1166 | return; |
| 1167 | |
| 1168 | TiXmlText cText(text); |
| 1169 | pNode->InsertEndChild( cText ); |
| 1170 | } |
| 1171 | |
| 1172 | DefineEngineMethod( SimXMLDocument, addText, void, ( const char* text ),, |
| 1173 | "@brief Add the given text as a child of current Element.\n\n" |
no test coverage detected