35#ifndef vtkXMLWriter2_h
36#define vtkXMLWriter2_h
38#include "vtkIOParallelXMLModule.h"
73 vtkGetMacro(NumberOfGhostLevels,
int);
115 static std::tuple<std::string, std::string, std::string>
SplitFileName(
const std::string& fname);
148 const std::vector<std::string>& values,
int destinationRank);
157 void DeleteArtifacts();
160 int NumberOfGhostLevels;
161 std::vector<std::pair<std::string, bool>> Artifacts;
a simple class to control print indentation
Multiprocessing communication superclass.
base class for new-style XML Writers
static int ExclusiveScanSum(vtkMultiProcessController *controller, int value)
Helper method to do an exclusive scan using the summation operator.
~vtkXMLWriter2() override
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...
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Methods for various pipeline passes that can be overridden by subclasses to do the work for the reque...
static std::tuple< std::string, std::string, std::string > SplitFileName(const std::string &fname)
Splits the file name into three parts:
void AddRootArtifact(const std::string &fname, bool isDir=false)
Same as AddArtifact except only executes on root node.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
Overridden to handle requests.
std::vector< std::string > Gather(vtkMultiProcessController *controller, const std::vector< std::string > &values, int destinationRank)
Utility function to gather a vector of strings on to the destination rank.
void SetController(vtkMultiProcessController *controller)
Get/Set the controller to use.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Methods for various pipeline passes that can be overridden by subclasses to do the work for the reque...
bool MakeDirectory(const std::string &dirname) const
Use this to create a directory.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Methods for various pipeline passes that can be overridden by subclasses to do the work for the reque...
void AddArtifact(const std::string &fname, bool isDir=false)
This is used to store a list of generated artifacts as they are written out.
Abstract base class for VTK-XML writers.