vtkPVMacFileInformationHelper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkPVMacFileInformationHelper_h
4 #define vtkPVMacFileInformationHelper_h
5 
6 #include "vtkObject.h"
7 #include "vtkRemotingCoreModule.h" //needed for exports
8 
9 #include <string> // needed for string
10 #include <vector> // needed for vector of strings
11 
12 // Helper class for obtaining information about Mac OS X directories and
13 // volumes. This is a simply utility class used only by vtkPVFileInformation
14 // and so does not need to be wrapped.
16 {
17 public:
20  void PrintSelf(ostream& os, vtkIndent indent) override;
21 
22  // Description:
23  // Get the home directory for the user.
24  std::string GetHomeDirectory();
25 
26  // Description:
27  // Get the list of mounted volumes on the Mac.
28  // Returns a list of name/path pairs.
29  typedef std::pair<std::string, std::string> NamePath;
30  std::vector<NamePath> GetMountedVolumes();
31 
32  // Description:
33  // Get the location of the application bundle.
34  std::string GetBundleDirectory();
35 
36  // Description:
37  // Get the location of the user's Desktop directory.
38  // Empty return string means the directory does not exist.
39  std::string GetDesktopDirectory();
40 
41  // Description:
42  // Get the location of the user's Documents directory.
43  // Empty return string means the directory does not exist.
44  std::string GetDocumentsDirectory();
45 
46  // Description:
47  // Get the location of the current user's Downloads directory.
48  // Empty return string means the directory does not exist.
49  std::string GetDownloadsDirectory();
50 
51 protected:
54 
55 private:
57  void operator=(const vtkPVMacFileInformationHelper&) = delete;
58 };
59 
60 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
std::pair< std::string, std::string > NamePath
#define VTKREMOTINGCORE_EXPORT
static vtkObject * New()
void operator=(const vtkObjectBase &)