VTK  9.3.0
vtkXMLPStructuredDataWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkXMLPStructuredDataWriter_h
12 #define vtkXMLPStructuredDataWriter_h
13 
14 #include "vtkIOParallelXMLModule.h" // For export macro
15 #include "vtkXMLPDataWriter.h"
16 
17 #include <map> // for keeping track of extents
18 #include <vector> // for keeping track of extents
19 
20 VTK_ABI_NAMESPACE_BEGIN
22 
23 class VTKIOPARALLELXML_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
24 {
25 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29 protected:
32 
34  void WritePrimaryElementAttributes(ostream& os, vtkIndent indent) override;
35  void WritePPieceAttributes(int index) override;
37 
38  int WriteInternal() override;
39 
40  void PrepareSummaryFile() override;
41  int WritePiece(int index) override;
42 
43 private:
45  void operator=(const vtkXMLPStructuredDataWriter&) = delete;
46 
47  typedef std::map<int, std::vector<int>> ExtentsType;
48  ExtentsType Extents;
49 };
50 
51 VTK_ABI_NAMESPACE_END
52 #endif
a simple class to control print indentation
Definition: vtkIndent.h:29
Write data in a parallel XML format.
Superclass for PVTK XML structured data writers.
vtkXMLWriter * CreatePieceWriter(int index) override
int WritePiece(int index) override
Write a piece of the dataset on disk.
~vtkXMLPStructuredDataWriter() override
void WritePPieceAttributes(int index) override
Write the attributes of the piece at the given index.
int WriteInternal() override
Override writing method from superclass.
void PrepareSummaryFile() override
Collect information between ranks before writing the summary file.
virtual vtkXMLStructuredDataWriter * CreateStructuredPieceWriter()=0
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WritePrimaryElementAttributes(ostream &os, vtkIndent indent) override
Superclass for VTK XML structured data writers.
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:54
@ index
Definition: vtkX3D.h:246