vtkSMFileUtilities.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMFileUtilities.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 =========================================================================*/
37 #ifndef vtkSMFileUtilities_h
38 #define vtkSMFileUtilities_h
39 
40 #include "vtkRemotingServerManagerModule.h" // for exports
41 #include "vtkSMSessionObject.h"
42 
44 {
45 public:
46  static vtkSMFileUtilities* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
57  bool MakeDirectory(const std::string& name, vtkTypeUInt32 location);
58 
65  bool DeleteDirectory(const std::string& name, vtkTypeUInt32 location);
66 
73  bool RenameDirectory(const std::string& name, const std::string& newname, vtkTypeUInt32 location);
74 
75 protected:
77  ~vtkSMFileUtilities() override;
78 
79 private:
80  vtkSMFileUtilities(const vtkSMFileUtilities&) = delete;
81  void operator=(const vtkSMFileUtilities&) = delete;
82 };
83 
84 #endif
superclass for any server manager classes that are related to a session
#define VTKREMOTINGSERVERMANAGER_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
file system utilties
static vtkSMSessionObject * New()