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 =========================================================================*/
25 #ifndef vtkSMDirectoryProxy_h
26 #define vtkSMDirectoryProxy_h
27 
28 #include "vtkRemotingServerManagerModule.h" //needed for exports
29 #include "vtkSMProxy.h"
30 
32 {
33 public:
34  static vtkSMDirectoryProxy* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
41  bool MakeDirectory(const char* dir);
42 
46  bool DeleteDirectory(const char* dir);
47 
51  bool Rename(const char* oldname, const char* newname);
52 
57  bool List(const char* dir);
58 
59 protected:
61  ~vtkSMDirectoryProxy() override;
62 
63  bool CallDirectoryMethod(const char* method, const char* path, const char* secondaryPath = NULL);
64 
65 private:
67  void operator=(const vtkSMDirectoryProxy&) = delete;
68 };
69 
70 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKREMOTINGSERVERMANAGER_EXPORT
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.