14 #ifndef vtkDICOMFileDirectory_h
15 #define vtkDICOMFileDirectory_h
17 #include "vtkSystemIncludes.h"
18 #include "vtkDICOMModule.h"
19 #include "vtkDICOMConfig.h"
62 int GetError() {
return this->Error; }
67 int GetNumberOfEntries() {
return this->NumberOfEntries; }
123 void AddEntry(
const char *name,
unsigned short flags,
unsigned short mask);
126 void StatEntry(
int i);
129 void LinkStatEntry(
int i);
132 static const unsigned int TypeDirectory = 1;
133 static const unsigned int TypeSpecial = 2;
134 static const unsigned int TypeSymlink = 4;
135 static const unsigned int TypeBroken = 8;
136 static const unsigned int TypeHidden = 16;
A class that provides directory listings.
Definition: vtkDICOMFileDirectory.h:25
bool IsSpecial(int i)
Check if the list entry is special (a device, socket, or pipe).
bool IsBroken(int i)
Check if the list entry is a symbolic link that is broken.
Code
Error codes.
Definition: vtkDICOMFileDirectory.h:36
bool IsSymlink(int i)
Check if the list entry is a symbolic link.
bool IsDirectory(int i)
Check if the list entry is a directory.
~vtkDICOMFileDirectory()
Destruct the object.
static int Create(const char *dirname)
Create a new directory with default permissions (static method).
const char * GetEntry(int i)
Get the name of the ith file or subdirectory.
vtkDICOMFileDirectory(const vtkDICOMFileDirectory &)
Copy constructor.
static int Access(const char *dirname, Mode mode)
Test a directory for accessibility (static method).
vtkDICOMFileDirectory(const char *dirname)
Construct the object from a directory name.
bool IsHidden(int i)
Check if the list entry has an attribute that marks it as hidden.
Mode
The access mode (input or output).
Definition: vtkDICOMFileDirectory.h:29