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

Method WriteInlineMode

IO/XML/vtkXMLUnstructuredDataWriter.cxx:453–477  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

451
452//------------------------------------------------------------------------------
453int 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//------------------------------------------------------------------------------
480void vtkXMLUnstructuredDataWriter::WriteInlinePieceAttributes()

Callers 1

WriteAPieceMethod · 0.95

Calls 3

WriteInlinePieceMethod · 0.95
GetNextIndentMethod · 0.80

Tested by

no test coverage detected