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

Method getData

Engine/source/console/SimXMLDocument.cpp:1361–1379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359}
1360
1361const char* SimXMLDocument::getData()
1362{
1363 if(m_paNode.empty())
1364 return "";
1365
1366 const S32 iFinalElement = m_paNode.size() - 1;
1367 tinyxml2::XMLNode* pNode = m_paNode[iFinalElement];
1368 if(!pNode)
1369 return "";
1370
1371 if( !pNode->FirstChild() )
1372 return "";
1373
1374 tinyxml2::XMLText* text = pNode->FirstChild()->ToText();
1375 if( !text )
1376 return "";
1377
1378 return text->Value();
1379}
1380
1381DefineEngineMethod( SimXMLDocument, getData, const char*, (),,
1382 "@brief Gets the text from the current Element.\n\n"

Callers 2

SimXMLDocument.cppFile · 0.45
getDataFunction · 0.45

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected