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

Method WriteInlineMode

IO/XML/vtkXMLTableWriter.cxx:381–405  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

379
380//------------------------------------------------------------------------------
381int vtkXMLTableWriter::WriteInlineMode(vtkIndent indent)
382{
383 ostream& os = *(this->Stream);
384 vtkIndent nextIndent = indent.GetNextIndent();
385
386 // Open the piece's element.
387 os << nextIndent << "<Piece";
388 this->WriteInlinePieceAttributes();
389 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
390 {
391 return 0;
392 }
393 os << ">\n";
394
395 this->WriteInlinePiece(nextIndent.GetNextIndent());
396 if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
397 {
398 return 0;
399 }
400
401 // Close the piece's element.
402 os << nextIndent << "</Piece>\n";
403
404 return 1;
405}
406
407//------------------------------------------------------------------------------
408void vtkXMLTableWriter::WriteInlinePieceAttributes()

Callers 1

WriteAPieceMethod · 0.95

Calls 3

WriteInlinePieceMethod · 0.95
GetNextIndentMethod · 0.80

Tested by

no test coverage detected