platformdirs
0.1.0
📂 Python's platformdirs module for C++
Loading...
Searching...
No Matches
include
platformdirs
macos.h
Go to the documentation of this file.
1
#pragma once
2
#include "
api.h
"
3
#include <filesystem>
4
#include <optional>
5
#include <string>
6
#include <variant>
7
8
namespace
platformdirs
{
9
namespace
macos
{
10
11
class
macos
:
public
platformdirs::api::platform_dirs_abc
{
12
public
:
13
macos
(
const
std::optional<std::string> &
appname
= std::nullopt,
14
const
std::variant<std::string, std::nullopt_t, bool> &
appauthor
=
15
std::nullopt,
16
const
std::optional<std::string> &
version
= std::nullopt,
17
bool
roaming
=
false
,
bool
multipath
=
false
,
bool
opinion
=
true
,
18
bool
ensure_exists
=
false
);
19
20
std::string
user_data_dir
()
const override
;
21
22
std::string
site_data_dir
()
const override
;
23
24
std::string
user_config_dir
()
const override
;
25
26
std::string
site_config_dir
()
const override
;
27
28
std::string
user_cache_dir
()
const override
;
29
30
std::string
site_cache_dir
()
const override
;
31
32
std::string
user_state_dir
()
const override
;
33
34
std::string
user_log_dir
()
const override
;
35
36
std::string
user_documents_dir
()
const override
;
37
38
std::string
user_downloads_dir
()
const override
;
39
40
std::string
user_pictures_dir
()
const override
;
41
42
std::string
user_videos_dir
()
const override
;
43
44
std::string
user_music_dir
()
const override
;
45
46
std::string
user_desktop_dir
()
const override
;
47
48
std::string
user_runtime_dir
()
const override
;
49
50
std::string
site_runtime_dir
()
const override
;
51
};
52
53
}
// namespace macos
54
}
// namespace platformdirs
platformdirs::api::platform_dirs_abc
Definition
api.h:11
platformdirs::api::platform_dirs_abc::version
std::optional< std::string > version
Definition
api.h:15
platformdirs::api::platform_dirs_abc::multipath
bool multipath
Definition
api.h:17
platformdirs::api::platform_dirs_abc::appauthor
std::variant< std::string, std::nullopt_t, bool > appauthor
Definition
api.h:14
platformdirs::api::platform_dirs_abc::ensure_exists
bool ensure_exists
Definition
api.h:19
platformdirs::api::platform_dirs_abc::roaming
bool roaming
Definition
api.h:16
platformdirs::api::platform_dirs_abc::opinion
bool opinion
Definition
api.h:18
platformdirs::api::platform_dirs_abc::appname
std::optional< std::string > appname
Definition
api.h:13
platformdirs::macos::macos
Definition
macos.h:11
platformdirs::macos::macos::user_cache_dir
std::string user_cache_dir() const override
Definition
macos.cpp:35
platformdirs::macos::macos::user_downloads_dir
std::string user_downloads_dir() const override
Definition
macos.cpp:58
platformdirs::macos::macos::user_runtime_dir
std::string user_runtime_dir() const override
Definition
macos.cpp:83
platformdirs::macos::macos::user_desktop_dir
std::string user_desktop_dir() const override
Definition
macos.cpp:78
platformdirs::macos::macos::user_videos_dir
std::string user_videos_dir() const override
Definition
macos.cpp:68
platformdirs::macos::macos::user_documents_dir
std::string user_documents_dir() const override
Definition
macos.cpp:53
platformdirs::macos::macos::user_pictures_dir
std::string user_pictures_dir() const override
Definition
macos.cpp:63
platformdirs::macos::macos::user_log_dir
std::string user_log_dir() const override
Definition
macos.cpp:48
platformdirs::macos::macos::user_config_dir
std::string user_config_dir() const override
Definition
macos.cpp:27
platformdirs::macos::macos::user_music_dir
std::string user_music_dir() const override
Definition
macos.cpp:73
platformdirs::macos::macos::user_data_dir
std::string user_data_dir() const override
Definition
macos.cpp:17
platformdirs::macos::macos::user_state_dir
std::string user_state_dir() const override
Definition
macos.cpp:44
platformdirs::macos::macos::site_runtime_dir
std::string site_runtime_dir() const override
Definition
macos.cpp:89
platformdirs::macos::macos::site_config_dir
std::string site_config_dir() const override
Definition
macos.cpp:31
platformdirs::macos::macos::site_data_dir
std::string site_data_dir() const override
Definition
macos.cpp:23
platformdirs::macos::macos::site_cache_dir
std::string site_cache_dir() const override
Definition
macos.cpp:40
api.h
platformdirs
Definition
platformdirs.h:27
Generated by
1.11.0