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

Method WritePrimaryElement

IO/XML/vtkXMLWriter.cxx:3093–3109  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3091
3092//------------------------------------------------------------------------------
3093int vtkXMLWriter::WritePrimaryElement(ostream& os, vtkIndent indent)
3094{
3095 // Open the primary element.
3096 os << indent << "<" << this->GetDataSetName();
3097
3098 this->WritePrimaryElementAttributes(os, indent);
3099
3100 // Close the primary element:
3101 os << ">\n";
3102 os.flush();
3103 if (os.fail())
3104 {
3105 this->SetErrorCode(vtkErrorCode::OutOfDiskSpaceError);
3106 return 0;
3107 }
3108 return 1;
3109}
3110
3111// The following function are designed to be called outside of the VTK pipeline
3112// typically from a C interface or when ParaView want to control the writing

Callers 5

WriteHeaderMethod · 0.80
WriteHeaderMethod · 0.80
WriteHeaderMethod · 0.80
WriteHeaderMethod · 0.80
StartPrimaryElementMethod · 0.80

Calls 3

GetDataSetNameMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected