00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00020 #ifndef __vtkPVServerFileListing_h
00021 #define __vtkPVServerFileListing_h
00022
00023 #include "vtkPVServerObject.h"
00024
00025 class vtkClientServerStream;
00026 class vtkPVServerFileListingInternals;
00027
00028 class VTK_EXPORT vtkPVServerFileListing : public vtkPVServerObject
00029 {
00030 public:
00031 static vtkPVServerFileListing* New();
00032 vtkTypeRevisionMacro(vtkPVServerFileListing, vtkPVServerObject);
00033 void PrintSelf(ostream& os, vtkIndent indent);
00034
00036
00037 const vtkClientServerStream& GetFileListing(const char* dirname,
00038 int save);
00040
00042 const char* GetCurrentWorkingDirectory();
00043
00045 int FileIsDirectory(const char* dirname);
00046
00048 int FileIsReadable(const char* name);
00049 protected:
00050 vtkPVServerFileListing();
00051 ~vtkPVServerFileListing();
00052
00053
00054 vtkPVServerFileListingInternals* Internal;
00055
00056 void List(const char* dirname, int save);
00057 private:
00058 vtkPVServerFileListing(const vtkPVServerFileListing&);
00059 void operator=(const vtkPVServerFileListing&);
00060 };
00061
00062 #endif