VTK  9.3.20240423
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
22VTK_ABI_NAMESPACE_BEGIN
23class VTKIOIOSS_EXPORT vtkIOSSFilesScanner : public vtkObject
24{
25public:
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
57protected:
60
61private:
63 void operator=(const vtkIOSSFilesScanner&) = delete;
64};
65
66VTK_ABI_NAMESPACE_END
67#endif
68// VTK-HeaderTest-Exclude: vtkIOSSFilesScanner.h
helper to scan files
~vtkIOSSFilesScanner() override
static std::set< std::string > GetFilesFromMetaFile(VTK_FILEPATH const std::string &filename)
Parses the meta-file and returns a collection of files.
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkIOSSFilesScanner * New()
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:108
abstract base class for most VTK objects
Definition vtkObject.h:162
#define VTK_FILEPATH