vtkPVMacFileInformationHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVMacFileInformationHelper.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 =========================================================================*/
15 #ifndef vtkPVMacFileInformationHelper_h
16 #define vtkPVMacFileInformationHelper_h
17 
18 #include "vtkObject.h"
19 #include "vtkRemotingCoreModule.h" //needed for exports
20 
21 #include <string> // needed for string
22 #include <vector> // needed for vector of strings
23 
24 // Helper class for obtaining information about Mac OS X directories and
25 // volumes. This is a simply utility class used only by vtkPVFileInformation
26 // and so does not need to be wrapped.
28 {
29 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  // Description:
35  // Get the home directory for the user.
36  std::string GetHomeDirectory();
37 
38  // Description:
39  // Get the list of mounted volumes on the Mac.
40  // Returns a list of name/path pairs.
41  typedef std::pair<std::string, std::string> NamePath;
42  std::vector<NamePath> GetMountedVolumes();
43 
44  // Description:
45  // Get the location of the application bundle.
46  std::string GetBundleDirectory();
47 
48  // Description:
49  // Get the location of the user's Desktop directory.
50  // Empty return string means the directory does not exist.
51  std::string GetDesktopDirectory();
52 
53  // Description:
54  // Get the location of the user's Documents directory.
55  // Empty return string means the directory does not exist.
56  std::string GetDocumentsDirectory();
57 
58  // Description:
59  // Get the location of the current user's Downloads directory.
60  // Empty return string means the directory does not exist.
61  std::string GetDownloadsDirectory();
62 
63 protected:
66 
67 private:
69  void operator=(const vtkPVMacFileInformationHelper&) = delete;
70 };
71 
72 #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 &)