------------------------------------------------------------------------------
| 451 | |
| 452 | //------------------------------------------------------------------------------ |
| 453 | int vtkXMLUnstructuredDataWriter::WriteInlineMode(vtkIndent indent) |
| 454 | { |
| 455 | ostream& os = *(this->Stream); |
| 456 | vtkIndent nextIndent = indent.GetNextIndent(); |
| 457 | |
| 458 | // Open the piece's element. |
| 459 | os << nextIndent << "<Piece"; |
| 460 | this->WriteInlinePieceAttributes(); |
| 461 | if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError) |
| 462 | { |
| 463 | return 0; |
| 464 | } |
| 465 | os << ">\n"; |
| 466 | |
| 467 | this->WriteInlinePiece(nextIndent.GetNextIndent()); |
| 468 | if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError) |
| 469 | { |
| 470 | return 0; |
| 471 | } |
| 472 | |
| 473 | // Close the piece's element. |
| 474 | os << nextIndent << "</Piece>\n"; |
| 475 | |
| 476 | return 1; |
| 477 | } |
| 478 | |
| 479 | //------------------------------------------------------------------------------ |
| 480 | void vtkXMLUnstructuredDataWriter::WriteInlinePieceAttributes() |
no test coverage detected