VTK  9.3.1
vtkXMLPartitionedDataSetCollectionWriter.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 vtkXMLPartitionedDataSetCollectionWriter_h
17 #define vtkXMLPartitionedDataSetCollectionWriter_h
18 
19 #include "vtkIOParallelXMLModule.h" // For export macro
20 #include "vtkXMLWriter2.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKIOPARALLELXML_EXPORT vtkXMLPartitionedDataSetCollectionWriter : public vtkXMLWriter2
26 {
27 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
36  void SetInputData(vtkPartitionedDataSetCollection* pd);
37 
41  const char* GetDefaultFileExtension() override { return "vtpc"; }
42 
43 protected:
46 
48 
53  int GetDataSetMajorVersion() override { return 1; }
54  int GetDataSetMinorVersion() override { return 0; }
56 
59 
60 private:
63  void operator=(const vtkXMLPartitionedDataSetCollectionWriter&) = delete;
64 
65  bool WriteSummaryXML(vtkPartitionedDataSetCollection* input,
66  const std::vector<std::vector<std::string>>& allFilenames);
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif
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...
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
Store vtkAlgorithm input/output information.
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
int GetDataSetMinorVersion() override
Methods to define the file's major and minor version numbers.
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()
Composite dataset that groups datasets as a collection.