MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / FindOrCreate

Method FindOrCreate

lesson7-Detection/src/utils/tinyxml.cpp:1559–1568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1557}
1558
1559TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const std::string& _name )
1560{
1561 TiXmlAttribute* attrib = Find( _name );
1562 if ( !attrib ) {
1563 attrib = new TiXmlAttribute();
1564 Add( attrib );
1565 attrib->SetName( _name );
1566 }
1567 return attrib;
1568}
1569#endif
1570
1571

Callers 2

SetAttributeMethod · 0.80
SetDoubleAttributeMethod · 0.80

Calls 1

SetNameMethod · 0.80

Tested by

no test coverage detected