platformdirs 0.1.0
📂 Python's platformdirs module for C++
Loading...
Searching...
No Matches
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
8namespace platformdirs {
9namespace macos {
10
12public:
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
std::optional< std::string > version
Definition api.h:15
bool multipath
Definition api.h:17
std::variant< std::string, std::nullopt_t, bool > appauthor
Definition api.h:14
bool ensure_exists
Definition api.h:19
bool roaming
Definition api.h:16
bool opinion
Definition api.h:18
std::optional< std::string > appname
Definition api.h:13
Definition macos.h:11
std::string user_cache_dir() const override
Definition macos.cpp:35
std::string user_downloads_dir() const override
Definition macos.cpp:58
std::string user_runtime_dir() const override
Definition macos.cpp:83
std::string user_desktop_dir() const override
Definition macos.cpp:78
std::string user_videos_dir() const override
Definition macos.cpp:68
std::string user_documents_dir() const override
Definition macos.cpp:53
std::string user_pictures_dir() const override
Definition macos.cpp:63
std::string user_log_dir() const override
Definition macos.cpp:48
std::string user_config_dir() const override
Definition macos.cpp:27
std::string user_music_dir() const override
Definition macos.cpp:73
std::string user_data_dir() const override
Definition macos.cpp:17
std::string user_state_dir() const override
Definition macos.cpp:44
std::string site_runtime_dir() const override
Definition macos.cpp:89
std::string site_config_dir() const override
Definition macos.cpp:31
std::string site_data_dir() const override
Definition macos.cpp:23
std::string site_cache_dir() const override
Definition macos.cpp:40
Definition platformdirs.h:27