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

Method getData

Engine/source/console/SimXMLDocument.cpp:1345–1363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343}
1344
1345const char* SimXMLDocument::getData()
1346{
1347 if(m_paNode.empty())
1348 return "";
1349
1350 const S32 iFinalElement = m_paNode.size() - 1;
1351 TiXmlNode* pNode = m_paNode[iFinalElement];
1352 if(!pNode)
1353 return "";
1354
1355 if( !pNode->FirstChild() )
1356 return "";
1357
1358 TiXmlText* text = pNode->FirstChild()->ToText();
1359 if( !text )
1360 return "";
1361
1362 return text->Value();
1363}
1364
1365DefineEngineMethod( SimXMLDocument, getData, const char*, (),,
1366 "@brief Gets the text from the current Element.\n\n"

Callers 2

SimXMLDocument.cppFile · 0.45
getDataFunction · 0.45

Calls 5

emptyMethod · 0.45
sizeMethod · 0.45
FirstChildMethod · 0.45
ToTextMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected