 |
VTK
9.1.0
|
Go to the documentation of this file.
25 #ifndef vtkPDirectory_h
26 #define vtkPDirectory_h
29 #include "vtkParallelCoreModule.h"
static int DeleteDirectory(VTK_FILEPATH const char *dir)
Remove a directory.
int Open(const char *dir)
Open/Load the specified directory and load the names of the files in that directory.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPDirectory provides a portable way of finding the names of the files in a system directory where p...
static VTK_FILEPATH const char * GetCurrentWorkingDirectory(char *buf, unsigned int len)
Get the current working directory.
static int MakeDirectory(VTK_FILEPATH const char *dir)
Create directory.
static int Rename(VTK_FILEPATH const char *oldname, VTK_FILEPATH const char *newname)
Rename a file or directory.
static vtkPDirectory * New()
bool Load(const std::string &)
Open/Load the specified directory and load the names of the files in that directory.
a simple class to control print indentation
~vtkPDirectory() override
VTK_FILEPATH const char * GetFile(vtkIdType index) const
Return the file at the given index, the indexing is 0 based.
int FileIsDirectory(const char *name)
Return true if the file is a directory.
vtkIdType GetNumberOfFiles() const
Return the number of files in the current directory.
a vtkAbstractArray subclass for strings
void Clear()
Clear the internal structure.
VTK_FILEPATH const char * GetPath() const
Return the path to Open'ed directory.