vtkPVFileInformationHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVFileInformationHelper.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkPVFileInformationHelper_h
29 #define vtkPVFileInformationHelper_h
30 
31 #include "vtkObject.h"
32 #include "vtkRemotingCoreModule.h" //needed for exports
33 
34 #include <string> // needed for std::string
35 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
49  vtkSetStringMacro(Path);
50  vtkGetStringMacro(Path);
52 
54 
61  vtkSetStringMacro(WorkingDirectory);
62  vtkGetStringMacro(WorkingDirectory);
64 
66 
72  vtkGetMacro(DirectoryListing, int);
73  vtkSetMacro(DirectoryListing, int);
74  vtkBooleanMacro(DirectoryListing, int);
76 
78 
86  vtkGetMacro(SpecialDirectories, int);
87  vtkSetMacro(SpecialDirectories, int);
88  vtkBooleanMacro(SpecialDirectories, int);
90 
92 
99  vtkGetMacro(FastFileTypeDetection, int);
100  vtkSetMacro(FastFileTypeDetection, int);
102 
104 
107  vtkGetStringMacro(PathSeparator);
109 
113  bool GetActiveFileIsReadable();
114 
118  bool GetActiveFileIsDirectory();
119 
124  static std::string LocalToUtf8Win32(const std::string& path);
125 
130  static std::string Utf8ToLocalWin32(const std::string& path);
131 
133 
138  vtkGetMacro(ReadDetailedFileInformation, bool);
139  vtkSetMacro(ReadDetailedFileInformation, bool);
141 
142 protected:
144  ~vtkPVFileInformationHelper() override;
145 
146  char* Path;
151 
154  vtkSetStringMacro(PathSeparator);
155 
156 private:
158  void operator=(const vtkPVFileInformationHelper&) = delete;
159 };
160 
161 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
server side object used to gather information from, by vtkPVFileInformation.
#define VTKREMOTINGCORE_EXPORT
static vtkObject * New()
void operator=(const vtkObjectBase &)