VTK  9.3.1
vtkXMLPartitionedDataSetWriter.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
16 #ifndef vtkXMLPartitionedDataSetWriter_h
17 #define vtkXMLPartitionedDataSetWriter_h
18 
19 #include "vtkIOParallelXMLModule.h" // For export macro
20 #include "vtkXMLWriter2.h"
21 
22 #include <string> // for std::string
23 #include <vector> // for std::vector
24 
25 VTK_ABI_NAMESPACE_BEGIN
27 
28 class VTKIOPARALLELXML_EXPORT vtkXMLPartitionedDataSetWriter : public vtkXMLWriter2
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
39  void SetInputData(vtkPartitionedDataSet* pd);
40 
44  const char* GetDefaultFileExtension() override { return "vtpd"; }
45 
46 protected:
49 
51 
56  int GetDataSetMajorVersion() override { return 1; }
57  int GetDataSetMinorVersion() override { return 0; }
59 
62 
63 private:
65  void operator=(const vtkXMLPartitionedDataSetWriter&) = delete;
66 
67  bool WriteSummaryXML(vtkPartitionedDataSet* input, const std::vector<std::string>& allFilenames);
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif
composite dataset to encapsulates a dataset consisting of partitions.
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0
Methods for various pipeline passes that can be overridden by subclasses to do the work for the reque...
int GetDataSetMinorVersion() override
Methods to define the file's major and minor version numbers.
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:28
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
base class for new-style XML Writers
Definition: vtkXMLWriter2.h:37
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
XML writer for vtkPartitionedDataSet.