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

Method nextAttribute

Engine/source/console/SimXMLDocument.cpp:702–717  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the name of the next attribute for the current element after a call to firstAttribute(). -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

700// to firstAttribute().
701// -----------------------------------------------------------------------------
702const char* SimXMLDocument::nextAttribute()
703{
704 if(!m_CurrentAttribute)
705 {
706 return StringTable->EmptyString();
707 }
708
709 // Gets its next attribute, if any
710 m_CurrentAttribute = m_CurrentAttribute->Next();
711 if(!m_CurrentAttribute)
712 {
713 return StringTable->EmptyString();
714 }
715
716 return m_CurrentAttribute->Name();
717}
718
719DefineEngineMethod( SimXMLDocument, nextAttribute, const char*, (),,
720 "@brief Get the name of the next attribute for the current Element after a call to firstAttribute().\n\n"

Callers 1

SimXMLDocument.cppFile · 0.80

Calls 3

EmptyStringMethod · 0.80
NameMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected