MCPcopy Create free account
hub / github.com/Kitware/VTK / GetAttribute

Method GetAttribute

Common/DataModel/vtkXMLDataElement.cxx:301–317  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

299
300//------------------------------------------------------------------------------
301const char* vtkXMLDataElement::GetAttribute(const char* name)
302{
303 if (!name)
304 {
305 return nullptr;
306 }
307
308 int i;
309 for (i = 0; i < this->NumberOfAttributes; ++i)
310 {
311 if (strcmp(this->AttributeNames[i], name) == 0)
312 {
313 return this->AttributeValues[i];
314 }
315 }
316 return nullptr;
317}
318
319//------------------------------------------------------------------------------
320const char* vtkXMLDataElement::GetAttributeName(int idx)

Callers 5

GetVectorAttributeMethod · 0.95
GetWordTypeAttributeMethod · 0.95
IsEqualToMethod · 0.45
DeepCopyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected