VTK  9.1.0
vtkIOSSFilesScanner.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkIOSSFilesScanner.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
24#ifndef vtkIOSSFilesScanner_h
25#define vtkIOSSFilesScanner_h
26
27#include "vtkIOIOSSModule.h" // for export macros
28#include "vtkObject.h"
29
30#include <set>
31#include <string>
32#include <vector>
33
34class VTKIOIOSS_EXPORT vtkIOSSFilesScanner : public vtkObject
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
44 static bool IsMetaFile(VTK_FILEPATH const std::string& filename);
45
49 static std::set<std::string> GetFilesFromMetaFile(VTK_FILEPATH const std::string& filename);
50
60 static std::set<std::string> GetRelatedFiles(const std::set<std::string>& originalSet,
61 const std::vector<std::string>& directoryListing = std::vector<std::string>());
62
67
68protected:
71
72private:
74 void operator=(const vtkIOSSFilesScanner&) = delete;
75};
76
77#endif
78// 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:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
@ string
Definition: vtkX3D.h:496
#define VTK_FILEPATH