------------------------------------------------------------------------------
| 487 | |
| 488 | //------------------------------------------------------------------------------ |
| 489 | const char* vtkPhyloXMLTreeWriter::GetArrayAttribute( |
| 490 | vtkAbstractArray* array, const char* attributeName) |
| 491 | { |
| 492 | vtkInformation* info = array->GetInformation(); |
| 493 | vtkNew<vtkInformationIterator> infoItr; |
| 494 | infoItr->SetInformation(info); |
| 495 | for (infoItr->InitTraversal(); !infoItr->IsDoneWithTraversal(); infoItr->GoToNextItem()) |
| 496 | { |
| 497 | if (strcmp(infoItr->GetCurrentKey()->GetName(), attributeName) == 0) |
| 498 | { |
| 499 | vtkInformationStringKey* key = |
| 500 | vtkInformationStringKey::SafeDownCast(infoItr->GetCurrentKey()); |
| 501 | if (key) |
| 502 | { |
| 503 | return info->Get(key); |
| 504 | } |
| 505 | } |
| 506 | } |
| 507 | return ""; |
| 508 | } |
| 509 | |
| 510 | //------------------------------------------------------------------------------ |
| 511 | void vtkPhyloXMLTreeWriter::PrintSelf(ostream& os, vtkIndent indent) |
no test coverage detected