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

Method getData

engine/source/persistence/SimXMLDocument.cpp:857–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855
856
857const char* SimXMLDocument::getData()
858{
859 if(m_paNode.empty())
860 return "";
861
862 const int iFinalElement = m_paNode.size() - 1;
863 TiXmlNode* pNode = m_paNode[iFinalElement];
864 if(!pNode)
865 return "";
866
867 TiXmlNode * firstChild = pNode->FirstChild();
868
869 if(!firstChild)
870 return "";
871
872 TiXmlText* text = firstChild->ToText();
873 if( !text )
874 return "";
875
876 return text->Value();
877}

Callers 1

Calls 5

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

Tested by

no test coverage detected