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

Method addData

Engine/source/console/SimXMLDocument.cpp:1315–1327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1313}
1314
1315void 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
1329DefineEngineMethod( SimXMLDocument, addData, void, ( const char* text ),,
1330 "@brief Add the given text as a child of current Element.\n\n"

Callers 1

SimXMLDocument.cppFile · 0.80

Calls 4

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

Tested by

no test coverage detected