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.
const char * GetFile(vtkIdType index) const
Return the file at the given index, the indexing is 0 based.
int Open(const char *dir)
Open/Load the specified directory and load the names of the files in that directory.
static int Rename(const char *oldname, const char *newname)
Rename a file or directory.
static const char * GetCurrentWorkingDirectory(char *buf, unsigned int len)
Get the current working directory.
static vtkPDirectory * New()
static int DeleteDirectory(const char *dir)
Remove a 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.
const char * GetPath() const
Return the path to Open'ed directory.
static int MakeDirectory(const char *dir)
Create directory.
a vtkAbstractArray subclass for strings