vtkSMDirectoryProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSMDirectoryProxy_h
14 #define vtkSMDirectoryProxy_h
15 
16 #include "vtkRemotingServerManagerModule.h" //needed for exports
17 #include "vtkSMProxy.h"
18 
20 {
21 public:
22  static vtkSMDirectoryProxy* New();
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
29  bool MakeDirectory(const char* dir);
30 
34  bool DeleteDirectory(const char* dir);
35 
39  bool Rename(const char* oldname, const char* newname);
40 
45  bool List(const char* dir);
46 
47 protected:
49  ~vtkSMDirectoryProxy() override;
50 
51  bool CallDirectoryMethod(
52  const char* method, const char* path, const char* secondaryPath = nullptr);
53 
54 private:
56  void operator=(const vtkSMDirectoryProxy&) = delete;
57 };
58 
59 #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:140
void operator=(const vtkSMProxy &)=delete
Is a utility proxy to create/delete/rename directories.