MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / addText

Method addText

Engine/source/console/SimXMLDocument.cpp:1158–1170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156}
1157
1158void 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
1172DefineEngineMethod( SimXMLDocument, addText, void, ( const char* text ),,
1173 "@brief Add the given text as a child of current Element.\n\n"

Callers 2

SimXMLDocument.cppFile · 0.45
buildDocumentMethod · 0.45

Calls 3

InsertEndChildMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected