27 #ifndef vtkFileSeriesHelper_h 28 #define vtkFileSeriesHelper_h 50 typedef bool (*FileNameFunctorType)(
vtkAlgorithm* reader,
const std::string& filename);
56 void RemoveAllFileNames();
57 void AddFileName(
const char* fname);
58 void SetFileNames(
const std::vector<std::string>& filenames);
64 unsigned int GetNumberOfFiles()
const;
77 virtual bool ReadMetaFile(
const char* metafilename);
98 vtkSetMacro(IgnoreReaderTime,
bool);
99 vtkGetMacro(IgnoreReaderTime,
bool);
100 vtkBooleanMacro(IgnoreReaderTime,
bool);
120 virtual bool UpdateInformation(
vtkAlgorithm* reader,
const FileNameFunctorType& ftor);
132 const std::vector<double>&
GetTimeSteps()
const {
return this->AggregatedTimeSteps; }
137 const std::pair<double, double>&
GetTimeRange(
bool* isvalid = NULL)
const 141 *isvalid = this->AggregatedTimeRangeValid;
143 return this->AggregatedTimeRange;
155 vtkGetMacro(PartitionedFiles,
bool);
166 std::vector<std::string> GetActiveFiles(
vtkInformation* outInfo)
const;
180 const std::pair<double, double>&
GetTimeRange()
const {
return this->TimeRange; }
181 const std::vector<double>&
GetTimeSteps()
const {
return this->TimeSteps; }
189 std::pair<double, double> TimeRange;
190 std::vector<double> TimeSteps;
205 std::vector<std::string> SplitFiles(
206 const std::vector<std::string>& files,
int piece,
int numPieces)
const;
208 void Broadcast(
int srcRank);
210 std::vector<double> AggregatedTimeSteps;
211 bool AggregatedTimeRangeValid;
212 std::pair<double, double> AggregatedTimeRange;
const std::vector< double > & GetTimeSteps() const
Returns the timesteps determined.
#define VTKPVVTKEXTENSIONSCGNSREADER_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkTypeUInt64 vtkMTimeType
std::vector< std::string > FileNames
const std::pair< double, double > & GetTimeRange(bool *isvalid=NULL) const
Returns the time range determined.
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
Helper class to process file series.
vtkMultiProcessController * Controller
std::vector< vtkTimeInformation > Information