Static Public Member Functions | List of all members
vtkPVStandardPaths Class Reference

Utilities methods to get standard paths. More...

#include <vtkPVStandardPaths.h>

Static Public Member Functions

static std::vector< std::stringGetSystemDirectories ()
 Return system data directories, depending on operating system: More...
 
static std::vector< std::stringGetInstallDirectories ()
 Returns paths relative to install directory. More...
 
static std::string GetUserSettingsDirectory ()
 Get directory for user settings file. More...
 
static std::string GetUserSettingsFilePath ()
 Get file path for the user settings file. More...
 

Detailed Description

Utilities methods to get standard paths.

Methods to get useful paths depending on the current operating system and on the running application:

Different environment variables are taken into account, trying to respect diffent system convention:

This class has only static methods to access standard paths used by ParaView and is not meant to be instantiated.

Definition at line 33 of file vtkPVStandardPaths.h.

Member Function Documentation

◆ GetSystemDirectories()

static std::vector<std::string> vtkPVStandardPaths::GetSystemDirectories ( )
static

Return system data directories, depending on operating system:

◆ GetInstallDirectories()

static std::vector<std::string> vtkPVStandardPaths::GetInstallDirectories ( )
static

Returns paths relative to install directory.

  • the exectutable dir
  • the <install> dir: the executable dir or its parent if executable is under a "bin" dir.
  • <install>/lib <install>/share/paraview-<version>
  • MacOs specific:
    • package <root>: <install>/../../..
    • lib, lib-paraview-<version>, Support as <root> subdirs.

◆ GetUserSettingsDirectory()

static std::string vtkPVStandardPaths::GetUserSettingsDirectory ( )
static

Get directory for user settings file.

The last character is always the file path separator appropriate for the system.

◆ GetUserSettingsFilePath()

static std::string vtkPVStandardPaths::GetUserSettingsFilePath ( )
static

Get file path for the user settings file.

Construct server settings file path: <GetUserSettingsDirectory()>/<GetApplicationName()>-UserSettings.json

See also
vtkInitializationHelper::GetApplicationName()

The documentation for this class was generated from the following file: