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

Method nextSiblingElement

Engine/source/console/SimXMLDocument.cpp:465–489  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Convert top stack element into its next sibling element. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

463// Convert top stack element into its next sibling element.
464// -----------------------------------------------------------------------------
465bool SimXMLDocument::nextSiblingElement(const char* rName)
466{
467 // Clear the current attribute pointer
468 m_CurrentAttribute = 0;
469
470 // Attempt to find the next sibling element
471 if(m_paNode.empty())
472 {
473 return false;
474 }
475 const S32 iLastElement = m_paNode.size() - 1;
476 TiXmlElement*& pElement = m_paNode[iLastElement];
477 if(!pElement)
478 {
479 return false;
480 }
481
482 pElement = pElement->NextSiblingElement(rName);
483 if(!pElement)
484 {
485 return false;
486 }
487
488 return true;
489}
490
491DefineEngineMethod( SimXMLDocument, nextSiblingElement, bool, ( const char* name ),,
492 "@brief Put the next sibling Element with the given name on the stack, making it the current one.\n\n"

Callers 4

SimXMLDocument.cppFile · 0.80
readStatesMethod · 0.80
readTransitionsMethod · 0.80
readConditionsMethod · 0.80

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
NextSiblingElementMethod · 0.45

Tested by

no test coverage detected