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

Method addData

Engine/source/console/SimXMLDocument.cpp:1299–1311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1297}
1298
1299void SimXMLDocument::addData(const char* text)
1300{
1301 if(m_paNode.empty())
1302 return;
1303
1304 const S32 iFinalElement = m_paNode.size() - 1;
1305 TiXmlElement* pNode = m_paNode[iFinalElement];
1306 if(!pNode)
1307 return;
1308
1309 TiXmlText cText(text);
1310 pNode->InsertEndChild( cText );
1311}
1312
1313DefineEngineMethod( SimXMLDocument, addData, void, ( const char* text ),,
1314 "@brief Add the given text as a child of current Element.\n\n"

Callers 1

SimXMLDocument.cppFile · 0.80

Calls 3

InsertEndChildMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected