vtkSMDirectoryProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
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 =========================================================================*/
21 #ifndef vtkSMDirectoryProxy_h
22 #define vtkSMDirectoryProxy_h
23 
24 #include "vtkRemotingServerManagerModule.h" //needed for exports
25 #include "vtkSMProxy.h"
26 
27 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMDirectoryProxy : public vtkSMProxy
28 {
29 public:
30  static vtkSMDirectoryProxy* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
37  bool MakeDirectory(const char* dir);
38 
42  bool DeleteDirectory(const char* dir);
43 
47  bool Rename(const char* oldname, const char* newname);
48 
53  bool List(const char* dir);
54 
55 protected:
57  ~vtkSMDirectoryProxy() override;
58 
59  bool CallDirectoryMethod(const char* method, const char* path, const char* secondaryPath = NULL);
60 
61 private:
63  void operator=(const vtkSMDirectoryProxy&) = delete;
64 };
65 
66 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkSMProxy * New()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
void operator=(const vtkSMProxy &)=delete
Is a utility proxy to create/delete/rename directories.