跳转至

Class qqmusic::utils::PathManager

ClassList > qqmusic > utils > PathManager

返回默认路径

  • #include <paths.h>

Public Functions

Type Name
fs::path get_cache_path () const
获取缓存路径
fs::path get_download_path () const
获取下载路径
fs::path get_log_path () const
获取日志路径
void set_cache_path (std::string_view path)
设置缓存路径
void set_cache_path (const fs::path & path)
void set_download_path (std::string_view path)
设置下载路径
void set_download_path (const fs::path & path)
void set_log_path (std::string_view path)
设置日志路径
void set_log_path (const fs::path & path)

Public Static Functions

Type Name
PathManager & get_instance ()
获取实例引用

Public Functions Documentation

function get_cache_path

获取缓存路径

fs::path qqmusic::utils::PathManager::get_cache_path () const


function get_download_path

获取下载路径

fs::path qqmusic::utils::PathManager::get_download_path () const


function get_log_path

获取日志路径

fs::path qqmusic::utils::PathManager::get_log_path () const


function set_cache_path [1/2]

设置缓存路径

void qqmusic::utils::PathManager::set_cache_path (
    std::string_view path
) 


function set_cache_path [2/2]

void qqmusic::utils::PathManager::set_cache_path (
    const fs::path & path
) 

function set_download_path [1/2]

设置下载路径

void qqmusic::utils::PathManager::set_download_path (
    std::string_view path
) 


function set_download_path [2/2]

void qqmusic::utils::PathManager::set_download_path (
    const fs::path & path
) 

function set_log_path [1/2]

设置日志路径

void qqmusic::utils::PathManager::set_log_path (
    std::string_view path
) 


function set_log_path [2/2]

void qqmusic::utils::PathManager::set_log_path (
    const fs::path & path
) 

Public Static Functions Documentation

function get_instance

获取实例引用

static PathManager & qqmusic::utils::PathManager::get_instance () 



The documentation for this class was generated from the following file include/qqmusic/utils/paths.h