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 =========================================================================*/
38 #ifndef vtkGlobFileNames_h
39 #define vtkGlobFileNames_h
40 
41 #include "vtkIOCoreModule.h" // For export macro
42 #include "vtkObject.h"
43 
44 class vtkStringArray;
45 
47 {
48 public:
50 
51  vtkTypeMacro(vtkGlobFileNames,vtkObject);
53 
55  static vtkGlobFileNames *New();
56 
58  virtual void PrintSelf(ostream& os, vtkIndent indent);
59 
61  void Reset();
62 
64 
69  vtkSetStringMacro(Directory);
70  vtkGetStringMacro(Directory);
72 
77  int AddFileNames(const char* pattern);
78 
80 
81  vtkSetMacro(Recurse, int);
82  vtkBooleanMacro(Recurse, int);
83  vtkGetMacro(Recurse, int);
85 
87  int GetNumberOfFileNames();
88 
90  const char* GetNthFileName(int index);
91 
93 
94  vtkGetObjectMacro(FileNames, vtkStringArray);
96 
97 protected:
99 
100  vtkSetStringMacro(Pattern);
101  vtkGetStringMacro(Pattern);
103 
105  ~vtkGlobFileNames();
106 
107 private:
108  char* Directory; // Directory for search.
109  char* Pattern; // Wildcard pattern
110  int Recurse; // Recurse into subdirectories
111  vtkStringArray *FileNames; // VTK array of files
112 
113 private:
114  vtkGlobFileNames(const vtkGlobFileNames&); // Not implemented.
115  void operator=(const vtkGlobFileNames&); // Not implemented.
116 };
117 
118 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
a vtkAbstractArray subclass for strings
find files that match a wildcard pattern
#define VTKIOCORE_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()