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 "vtkObject.h"
42 
43 class vtkStringArray;
44 
46 {
47 public:
49 
50  vtkTypeMacro(vtkGlobFileNames,vtkObject);
52 
54  static vtkGlobFileNames *New();
55 
57  virtual void PrintSelf(ostream& os, vtkIndent indent);
58 
60  void Reset();
61 
63 
68  vtkSetStringMacro(Directory);
69  vtkGetStringMacro(Directory);
71 
76  int AddFileNames(const char* pattern);
77 
79 
80  vtkSetMacro(Recurse, int);
81  vtkBooleanMacro(Recurse, int);
82  vtkGetMacro(Recurse, int);
84 
86  int GetNumberOfFileNames();
87 
89  const char* GetNthFileName(int index);
90 
92 
93  vtkGetObjectMacro(FileNames, vtkStringArray);
95 
96 protected:
98 
99  vtkSetStringMacro(Pattern);
100  vtkGetStringMacro(Pattern);
102 
104  ~vtkGlobFileNames();
105 
106 private:
107  char* Directory; // Directory for search.
108  char* Pattern; // Wildcard pattern
109  int Recurse; // Recurse into subdirectories
110  vtkStringArray *FileNames; // VTK array of files
111 
112 private:
113  vtkGlobFileNames(const vtkGlobFileNames&); // Not implemented.
114  void operator=(const vtkGlobFileNames&); // Not implemented.
115 };
116 
117 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
a vtkAbstractArray subclass for strings
find files that match a wildcard pattern
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_IO_EXPORT
static vtkObject * New()