VTK  9.3.0
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:
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 
56 
57 protected:
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
~vtkIOSSFilesScanner() override
static std::set< std::string > GetRelatedFiles(const std::set< std::string > &originalSet, const std::vector< std::string > &directoryListing=std::vector< std::string >())
Scans for related files.
static vtkIOSSFilesScanner * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static std::set< std::string > GetFilesFromMetaFile(VTK_FILEPATH const std::string &filename)
Parses the meta-file and returns a collection of files.
static bool DoTestFilePatternMatching()
Runs a bunch of tests for file pattern matching.
static bool IsMetaFile(VTK_FILEPATH const std::string &filename)
Returns true if the file is a meta-file.
a simple class to control print indentation
Definition: vtkIndent.h:29
abstract base class for most VTK objects
Definition: vtkObject.h:52
@ string
Definition: vtkX3D.h:490
#define VTK_FILEPATH