VTK  9.3.1
vtkIOSSFilesScanner.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
12 #ifndef vtkIOSSFilesScanner_h
13 #define vtkIOSSFilesScanner_h
14 
15 #include "vtkIOIOSSModule.h" // for export macros
16 #include "vtkObject.h"
17 
18 #include <set>
19 #include <string>
20 #include <vector>
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKIOIOSS_EXPORT vtkIOSSFilesScanner : public vtkObject
24 {
25 public:
26  static vtkIOSSFilesScanner* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
33  static bool IsMetaFile(VTK_FILEPATH const std::string& filename);
34 
38  static std::set<std::string> GetFilesFromMetaFile(VTK_FILEPATH const std::string& filename);
39 
49  static std::set<std::string> GetRelatedFiles(const std::set<std::string>& originalSet,
50  const std::vector<std::string>& directoryListing = std::vector<std::string>());
51 
55  static bool DoTestFilePatternMatching();
56 
57 protected:
59  ~vtkIOSSFilesScanner() override;
60 
61 private:
63  void operator=(const vtkIOSSFilesScanner&) = delete;
64 };
65 
66 VTK_ABI_NAMESPACE_END
67 #endif
68 // VTK-HeaderTest-Exclude: vtkIOSSFilesScanner.h
helper to scan files
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_FILEPATH
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...