------------------------------------------------------------------------------
| 3091 | |
| 3092 | //------------------------------------------------------------------------------ |
| 3093 | int 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 |
no test coverage detected