dox/Common/vtkDirectory.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00032
#ifndef __vtkDirectory_h
00033
#define __vtkDirectory_h
00034
00035
#include "vtkObject.h"
00036
00037 class VTK_COMMON_EXPORT vtkDirectory :
public vtkObject
00038 {
00039
public:
00041
00042 vtkTypeRevisionMacro(vtkDirectory,
vtkObject);
00044
00046
static vtkDirectory *
New();
00047
00049
virtual void PrintSelf(ostream& os,
vtkIndent indent);
00050
00054
int Open(
const char* dir);
00055
00057 int GetNumberOfFiles() {
return this->NumberOfFiles; }
00058
00060
const char* GetFile(
int index);
00061
00063
static const char* GetCurrentWorkingDirectory(
char* buf,
unsigned int len);
00064
00067
static int CreateDirectory(
const char* dir);
00068
00069
protected:
00070
00071
00072
void CleanUpFilesAndPath();
00073 vtkDirectory();
00074 ~vtkDirectory() ;
00075
private:
00076
char* Path;
00077
char** Files;
00078
int NumberOfFiles;
00079
00080
private:
00081 vtkDirectory(
const vtkDirectory&);
00082
void operator=(
const vtkDirectory&);
00083 };
00084
00085
#endif