1 // Copyright (C) 2022 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef vtkFileSeriesGroupReader_h
21 #define vtkFileSeriesGroupReader_h
23 #include "vtkMetaReader.h"
27 struct vtkFileSeriesGroupReaderInternals;
29 class VTK_EXPORT vtkFileSeriesGroupReader : public vtkMetaReader
32 static vtkFileSeriesGroupReader* New();
33 vtkTypeMacro(vtkFileSeriesGroupReader, vtkMetaReader);
34 void PrintSelf(ostream& os, vtkIndent indent) override;
37 * CanReadFile is forwarded to the internal reader if it supports it.
39 virtual int CanReadFile(const char* filename);
42 * Adds names of files to be read. The files are read in the order
45 virtual void AddFileName(const char* fname);
48 * Remove all file names.
50 virtual void RemoveAllFileNames();
53 * Returns the number of file names added by AddFileName.
55 virtual unsigned int GetNumberOfFileNames();
58 * Returns the name of a file with index idx.
60 virtual const char* GetFileName(unsigned int idx);
63 vtkFileSeriesGroupReader();
64 ~vtkFileSeriesGroupReader() override;
67 * Add/Remove filenames without changing the MTime.
69 void RemoveAllFileNamesInternal();
70 void AddFileNameInternal(const char*);
72 int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
73 int RequestData(vtkInformation* vtkNotUsed(request), vtkInformationVector** inputVector, vtkInformationVector* outputVector);
74 int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info);
77 vtkFileSeriesGroupReader(const vtkFileSeriesGroupReader&) = delete;
78 void operator=(const vtkFileSeriesGroupReader&) = delete;
80 std::unique_ptr<vtkFileSeriesGroupReaderInternals> Internals;