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

Method WriteArrayFooter

IO/XML/vtkXMLWriter.cxx:2108–2127  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2106
2107//------------------------------------------------------------------------------
2108void vtkXMLWriter::WriteArrayFooter(
2109 ostream& os, vtkIndent indent, vtkAbstractArray* a, int shortFormat)
2110{
2111 // Close the tag: </DataArray>, </Array> or />
2112 if (shortFormat)
2113 {
2114 os << "/>" << endl;
2115 }
2116 else
2117 {
2118 vtkDataArray* da = vtkArrayDownCast<vtkDataArray>(a);
2119 os << indent << (da ? "</DataArray>" : "</Array>") << "\n";
2120 }
2121 // Force write and check for errors.
2122 os.flush();
2123 if (os.fail())
2124 {
2125 this->SetErrorCode(vtkErrorCode::GetLastSystemError());
2126 }
2127}
2128
2129//------------------------------------------------------------------------------
2130void vtkXMLWriter::WriteInlineData(vtkAbstractArray* a, vtkIndent indent)

Callers 2

WriteArrayAppendedMethod · 0.95
WriteArrayInlineMethod · 0.95

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected