VTK
dox
Parallel
Core
vtkPDirectory.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPDirectory.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
=========================================================================*/
28
#ifndef vtkPDirectory_h
29
#define vtkPDirectory_h
30
31
#include "vtkParallelCoreModule.h"
// For export macro
32
#include "
vtkObject.h
"
33
#include <string>
// for string functions in Directory
34
35
class
vtkStringArray
;
36
37
class
VTKPARALLELCORE_EXPORT
vtkPDirectory
:
public
vtkObject
38
{
39
public
:
40
static
vtkPDirectory
*
New
();
41
vtkTypeMacro(
vtkPDirectory
,
vtkObject
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
43
45
52
bool
Load(
const
std::string
&);
53
int
Open(
const
char
*
dir
);
55
59
vtkIdType
GetNumberOfFiles()
const
;
60
64
const
char
* GetFile(
vtkIdType
index
)
const
;
65
72
int
FileIsDirectory(
const
char
*
name
);
73
75
78
vtkGetObjectMacro(Files,
vtkStringArray
);
80
84
const
char
* GetPath()
const
;
85
90
void
Clear();
91
92
protected
:
93
vtkPDirectory
();
94
~
vtkPDirectory
()
override
;
95
96
private
:
97
// Array of Files
98
vtkStringArray
*Files;
// VTK array of files
99
100
// Path to Open'ed directory
101
std::string
Path;
102
103
vtkPDirectory
(
const
vtkPDirectory
&) =
delete
;
104
void
operator=(
const
vtkPDirectory
&) =
delete
;
105
};
// End Class: vtkPDirectory
106
107
#endif
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
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:59
vtkX3D::dir
Definition:
vtkX3D.h:324
vtkPDirectory
Definition:
vtkPDirectory.h:37
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::name
Definition:
vtkX3D.h:219
vtkObject.h
vtkX3D::string
Definition:
vtkX3D.h:490
vtkStringArray
a vtkAbstractArray subclass for strings
Definition:
vtkStringArray.h:42
vtkX3D::index
Definition:
vtkX3D.h:246
Generated by
1.8.16