VTK
9.0.1
IO
Core
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
=========================================================================*/
36
#ifndef vtkGlobFileNames_h
37
#define vtkGlobFileNames_h
38
39
#include "vtkIOCoreModule.h"
// For export macro
40
#include "
vtkObject.h
"
41
42
class
vtkStringArray
;
43
44
class
VTKIOCORE_EXPORT
vtkGlobFileNames
:
public
vtkObject
45
{
46
public
:
48
51
vtkTypeMacro(
vtkGlobFileNames
,
vtkObject
);
53
57
static
vtkGlobFileNames
*
New
();
58
62
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
63
67
void
Reset();
68
70
77
vtkSetStringMacro(Directory);
78
vtkGetStringMacro(Directory);
80
87
int
AddFileNames(
const
char
* pattern);
88
90
93
vtkSetMacro(Recurse,
vtkTypeBool
);
94
vtkBooleanMacro(Recurse,
vtkTypeBool
);
95
vtkGetMacro(Recurse,
vtkTypeBool
);
97
101
int
GetNumberOfFileNames();
102
106
const
char
* GetNthFileName(
int
index
);
107
109
112
vtkGetObjectMacro(FileNames,
vtkStringArray
);
114
115
protected
:
117
120
vtkSetStringMacro(Pattern);
121
vtkGetStringMacro(Pattern);
123
124
vtkGlobFileNames
();
125
~
vtkGlobFileNames
()
override
;
126
127
private
:
128
char
* Directory;
// Directory for search.
129
char
* Pattern;
// Wildcard pattern
130
vtkTypeBool
Recurse;
// Recurse into subdirectories
131
vtkStringArray
* FileNames;
// VTK array of files
132
133
private
:
134
vtkGlobFileNames
(
const
vtkGlobFileNames
&) =
delete
;
135
void
operator=(
const
vtkGlobFileNames
&) =
delete
;
136
};
137
138
#endif
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGlobFileNames
find files that match a wildcard pattern
Definition:
vtkGlobFileNames.h:44
vtkObject.h
vtkStringArray
a vtkAbstractArray subclass for strings
Definition:
vtkStringArray.h:36
vtkX3D::index
@ index
Definition:
vtkX3D.h:252
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17