Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Servers/Filters/vtkPVServerFileListing.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPVServerFileListing.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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   // Internal implementation details.
00054   vtkPVServerFileListingInternals* Internal;
00055 
00056   void List(const char* dirname, int save);
00057 private:
00058   vtkPVServerFileListing(const vtkPVServerFileListing&); // Not implemented
00059   void operator=(const vtkPVServerFileListing&); // Not implemented
00060 };
00061 
00062 #endif

Generated on Tue May 30 12:31:46 2006 for ParaView by doxygen 1.3.5