Everything the resolver may read, so every platform's layout can be computed (and tested) on any host. More...
#include <special_dir.hpp>
Public Attributes | |
| std::function< std::optional< std::string >(std::string_view)> | getenv |
| Environment lookup; an unset or empty variable returns nullopt/empty. | |
| std::string | executable |
| Absolute path of the running executable. | |
| std::string | module |
| Absolute path of the binary holding this code. | |
| std::string | known_documents |
| Windows known-folder overrides, else derived. | |
| std::string | known_desktop |
| std::string | known_music |
| std::string | android_files_dir |
| From the app-data-dir hook. | |
| std::string | android_cache_dir |
| Optional; defaults to <files>/cache. | |
Everything the resolver may read, so every platform's layout can be computed (and tested) on any host.
Paths are UTF-8 strings written with the separator of the target OS.
| std::string pulp::platform::SpecialDirInputs::android_cache_dir |
Optional; defaults to <files>/cache.
| std::string pulp::platform::SpecialDirInputs::android_files_dir |
From the app-data-dir hook.
| std::string pulp::platform::SpecialDirInputs::executable |
Absolute path of the running executable.
| std::function<std::optional<std::string>(std::string_view)> pulp::platform::SpecialDirInputs::getenv |
Environment lookup; an unset or empty variable returns nullopt/empty.
| std::string pulp::platform::SpecialDirInputs::known_desktop |
| std::string pulp::platform::SpecialDirInputs::known_documents |
Windows known-folder overrides, else derived.
| std::string pulp::platform::SpecialDirInputs::known_music |
| std::string pulp::platform::SpecialDirInputs::module |
Absolute path of the binary holding this code.