VTK
vtkGlobFileNames.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGlobFileNames.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 =========================================================================*/
39 #ifndef vtkGlobFileNames_h
40 #define vtkGlobFileNames_h
41 
42 #include "vtkIOCoreModule.h" // For export macro
43 #include "vtkObject.h"
44 
45 class vtkStringArray;
46 
47 class VTKIOCORE_EXPORT vtkGlobFileNames : public vtkObject
48 {
49 public:
51 
54  vtkTypeMacro(vtkGlobFileNames,vtkObject);
56 
60  static vtkGlobFileNames *New();
61 
65  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
66 
70  void Reset();
71 
73 
80  vtkSetStringMacro(Directory);
81  vtkGetStringMacro(Directory);
83 
90  int AddFileNames(const char* pattern);
91 
93 
96  vtkSetMacro(Recurse, int);
97  vtkBooleanMacro(Recurse, int);
98  vtkGetMacro(Recurse, int);
100 
104  int GetNumberOfFileNames();
105 
109  const char* GetNthFileName(int index);
110 
112 
115  vtkGetObjectMacro(FileNames, vtkStringArray);
117 
118 protected:
120 
123  vtkSetStringMacro(Pattern);
124  vtkGetStringMacro(Pattern);
126 
128  ~vtkGlobFileNames();
129 
130 private:
131  char* Directory; // Directory for search.
132  char* Pattern; // Wildcard pattern
133  int Recurse; // Recurse into subdirectories
134  vtkStringArray *FileNames; // VTK array of files
135 
136 private:
137  vtkGlobFileNames(const vtkGlobFileNames&) VTK_DELETE_FUNCTION;
138  void operator=(const vtkGlobFileNames&) VTK_DELETE_FUNCTION;
139 };
140 
141 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a vtkAbstractArray subclass for strings
find files that match a wildcard pattern
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...