16#ifndef vtkPDirectory_h 
   17#define vtkPDirectory_h 
   20#include "vtkParallelCoreModule.h"  
   23VTK_ABI_NAMESPACE_BEGIN
 
   41  bool Load(
const std::string&);
 
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.
 
int Open(const char *dir)
Open/Load the specified directory and load the names of the files in that directory.
 
VTK_FILEPATH const char * GetFile(vtkIdType index) const
Return the file at the given index, the indexing is 0 based.
 
static vtkPDirectory * New()
 
static int Rename(VTK_FILEPATH const char *oldname, VTK_FILEPATH const char *newname)
Rename a file or directory.
 
~vtkPDirectory() override
 
static VTK_FILEPATH const char * GetCurrentWorkingDirectory(char *buf, unsigned int len)
Get the current working directory.
 
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.
 
VTK_FILEPATH const char * GetPath() const
Return the path to Open'ed directory.
 
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.
 
static int DeleteDirectory(VTK_FILEPATH const char *dir)
Remove a directory.
 
a vtkAbstractArray subclass for strings