------------------------------------------------------------------------------
| 503 | |
| 504 | //------------------------------------------------------------------------------ |
| 505 | void vtkXMLTableWriter::WriteRowDataAppended( |
| 506 | vtkDataSetAttributes* ds, vtkIndent indent, OffsetsManagerGroup* dsManager) |
| 507 | { |
| 508 | ostream& os = *(this->Stream); |
| 509 | int numberOfArrays = ds->GetNumberOfArrays(); |
| 510 | char** names = this->CreateStringArray(numberOfArrays); |
| 511 | |
| 512 | os << indent << "<RowData"; |
| 513 | this->WriteAttributeIndices(ds, names); |
| 514 | |
| 515 | if (this->ErrorCode != vtkErrorCode::NoError) |
| 516 | { |
| 517 | this->DestroyStringArray(numberOfArrays, names); |
| 518 | return; |
| 519 | } |
| 520 | |
| 521 | os << ">\n"; |
| 522 | |
| 523 | dsManager->Allocate(numberOfArrays); |
| 524 | for (int i = 0; i < numberOfArrays; ++i) |
| 525 | { |
| 526 | dsManager->GetElement(i).Allocate(this->NumberOfTimeSteps); |
| 527 | for (int t = 0; t < this->NumberOfTimeSteps; ++t) |
| 528 | { |
| 529 | this->WriteArrayAppended( |
| 530 | ds->GetAbstractArray(i), indent.GetNextIndent(), dsManager->GetElement(i), names[i], 0, t); |
| 531 | if (this->ErrorCode != vtkErrorCode::NoError) |
| 532 | { |
| 533 | this->DestroyStringArray(numberOfArrays, names); |
| 534 | return; |
| 535 | } |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | os << indent << "</RowData>\n"; |
| 540 | |
| 541 | os.flush(); |
| 542 | if (os.fail()) |
| 543 | { |
| 544 | this->SetErrorCode(vtkErrorCode::GetLastSystemError()); |
| 545 | } |
| 546 | this->DestroyStringArray(numberOfArrays, names); |
| 547 | } |
| 548 | |
| 549 | //------------------------------------------------------------------------------ |
| 550 | void vtkXMLTableWriter::WriteRowDataAppendedData( |
no test coverage detected