Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
TestingDirectoryManager Struct Reference
Inheritance diagram for TestingDirectoryManager:
Collaboration diagram for TestingDirectoryManager:

Public Member Functions

fs::path get_user_dir (bool force_default) override
 Gets the zrythm directory, either from the settings if non-empty, or the default ($XDG_DATA_DIR/zrythm).
const fs::path & get_testing_dir ()
 Returns the current testing dir.
void remove_testing_dir ()
 Clears testing_dir and removes the testing dir from the disk.
fs::path get_prefix () const override
 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.
fs::path get_default_user_dir () override
 Returns the default user "zrythm" dir.
Public Member Functions inherited from IDirectoryManager
virtual fs::path get_dir (DirectoryType type)
 Returns a Zrythm directory specified by type.

Data Fields

fs::path testing_dir_
 Zrythm directory used during unit tests.

Additional Inherited Members

Public Types inherited from IDirectoryManager
enum class  DirectoryType {
  SYSTEM_PREFIX , SYSTEM_BINDIR , SYSTEM_PARENT_DATADIR , SYSTEM_PARENT_LIBDIR ,
  SYSTEM_ZRYTHM_LIBDIR , SYSTEM_BUNDLED_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...

Detailed Description

Definition at line 184 of file directory_manager.h.

Constructor & Destructor Documentation

◆ ~TestingDirectoryManager()

TestingDirectoryManager::~TestingDirectoryManager ( )
inlineoverride

Definition at line 188 of file directory_manager.h.

Member Function Documentation

◆ get_default_user_dir()

fs::path TestingDirectoryManager::get_default_user_dir ( )
overridevirtual

Returns the default user "zrythm" dir.

This is used when resetting or when the dir is not selected by the user yet.

Implements IDirectoryManager.

◆ get_prefix()

fs::path TestingDirectoryManager::get_prefix ( ) const
overridevirtual

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.

Returns
A newly allocated string.

Implements IDirectoryManager.

◆ get_testing_dir()

const fs::path & TestingDirectoryManager::get_testing_dir ( )

Returns the current testing dir.

If empty, this creates a new testing dir on the disk.

◆ get_user_dir()

fs::path TestingDirectoryManager::get_user_dir ( bool force_default)
overridevirtual

Gets the zrythm directory, either from the settings if non-empty, or the default ($XDG_DATA_DIR/zrythm).

Parameters
force_defaultIgnore the settings and get the default dir.

Implements IDirectoryManager.

Field Documentation

◆ testing_dir_

fs::path TestingDirectoryManager::testing_dir_

Zrythm directory used during unit tests.

Definition at line 206 of file directory_manager.h.


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