|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|

Public Types | |
| enum class | DirectoryType { SYSTEM_PREFIX , SYSTEM_BINDIR , SYSTEM_PARENT_DATADIR , SYSTEM_PARENT_LIBDIR , SYSTEM_ZRYTHM_LIBDIR , SYSTEM_BUNDLED_PLUGINSDIR , SYSTEM_BUNDLED_VST3_PLUGINSDIR , SYSTEM_LOCALEDIR , SYSTEM_ZRYTHM_DATADIR , SYSTEM_SAMPLESDIR , SYSTEM_SCRIPTSDIR , SYSTEM_THEMESDIR , SYSTEM_THEMES_CSS_DIR , SYSTEM_THEMES_ICONS_DIR , SYSTEM_SPECIAL_LV2_PLUGINS_DIR , SYSTEM_TEMPLATES , USER_TOP , USER_PROJECTS , USER_TEMPLATES , USER_THEMES , USER_THEMES_CSS , USER_THEMES_ICONS , USER_SCRIPTS , USER_LOG , USER_PROFILING , USER_GDB , USER_BACKTRACE } |
| Type of directory. More... | |
Public Member Functions | |
| virtual std::filesystem::path | get_prefix () const =0 |
| Returns the prefix or in the case of Windows the root dir (C/program files/zrythm) or in the case of macos the bundle path. | |
| virtual std::filesystem::path | get_user_dir (bool force_default)=0 |
| Gets the zrythm directory, either from the settings if non-empty, or the default ($XDG_DATA_DIR/zrythm). | |
| virtual std::filesystem::path | get_default_user_dir ()=0 |
| Returns the default user "zrythm" dir. | |
| virtual std::filesystem::path | get_dir (DirectoryType type) |
| Returns a Zrythm directory specified by type. | |
Definition at line 10 of file directory_manager.h.
|
strong |
Type of directory.
System* directories are directories that are determined during installation that contain immutable data.
User* directories are directories determined based on the user or the user's preferences that contain user-modifiable data.
Definition at line 22 of file directory_manager.h.
|
pure virtual |
Returns the default user "zrythm" dir.
This is used when resetting or when the dir is not selected by the user yet.
Implemented in DirectoryManager, and TestingDirectoryManager.
|
virtual |
Returns a Zrythm directory specified by type.
|
pure virtual |
Returns the prefix or in the case of Windows the root dir (C/program files/zrythm) or in the case of macos the bundle path.
In all cases, "share" is expected to be found in this dir.
Implemented in DirectoryManager, and TestingDirectoryManager.
|
pure virtual |
Gets the zrythm directory, either from the settings if non-empty, or the default ($XDG_DATA_DIR/zrythm).
| force_default | Ignore the settings and get the default dir. |
Implemented in DirectoryManager, and TestingDirectoryManager.