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

Method addText

Engine/source/console/SimXMLDocument.cpp:1174–1186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172}
1173
1174void SimXMLDocument::addText(const char* text)
1175{
1176 if(m_paNode.empty())
1177 return;
1178
1179 const S32 iFinalElement = m_paNode.size() - 1;
1180 tinyxml2::XMLNode* pNode = m_paNode[iFinalElement];
1181 if(!pNode)
1182 return;
1183
1184 tinyxml2::XMLText* cText = m_qDocument->NewText(text);
1185 pNode->InsertEndChild( cText );
1186}
1187
1188DefineEngineMethod( SimXMLDocument, addText, void, ( const char* text ),,
1189 "@brief Add the given text as a child of current Element.\n\n"

Callers 2

SimXMLDocument.cppFile · 0.45
buildDocumentMethod · 0.45

Calls 4

NewTextMethod · 0.80
InsertEndChildMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected