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