#include <IPlatformInfo.hpp>
Public Member Functions | |
| virtual | ~IPlatformInfo ()=default |
| virtual Platform | getPlatform () const =0 |
| Get the Platform object. | |
| virtual std::string | getPlatformName () const =0 |
| Get the Platform Name object. | |
| virtual Result< std::filesystem::path, FileError > | getExecutablePath () const =0 |
| Get the Executable Path object. | |
| virtual Result< std::filesystem::path, FileError > | getExecutableDirectory () const =0 |
| Get the Executable Directory object. | |
| virtual bool | isWindows () const =0 |
| Check if the platform is Windows. | |
| virtual bool | isLinux () const =0 |
| Check if the platform is Linux. | |
| virtual bool | isMacOS () const =0 |
| Check if the platform is macOS. | |
| virtual bool | isEmscripten () const =0 |
| Check if the platform is Emscripten. | |
|
virtualdefault |
|
nodiscardpure virtual |
Get the Executable Directory object.
Implemented in dotnamecpp::utils::EmscriptenPlatformInfo, dotnamecpp::utils::UnixPlatformInfo, and dotnamecpp::utils::WindowsPlatformInfo.
|
nodiscardpure virtual |
Get the Executable Path object.
Implemented in dotnamecpp::utils::EmscriptenPlatformInfo, dotnamecpp::utils::UnixPlatformInfo, and dotnamecpp::utils::WindowsPlatformInfo.
|
nodiscardpure virtual |
Get the Platform object.
Implemented in dotnamecpp::utils::EmscriptenPlatformInfo, dotnamecpp::utils::UnixPlatformInfo, and dotnamecpp::utils::WindowsPlatformInfo.
|
nodiscardpure virtual |
Get the Platform Name object.
Implemented in dotnamecpp::utils::EmscriptenPlatformInfo, dotnamecpp::utils::UnixPlatformInfo, and dotnamecpp::utils::WindowsPlatformInfo.
|
nodiscardpure virtual |
Check if the platform is Emscripten.
Implemented in dotnamecpp::utils::EmscriptenPlatformInfo, dotnamecpp::utils::UnixPlatformInfo, and dotnamecpp::utils::WindowsPlatformInfo.
|
nodiscardpure virtual |
Check if the platform is Linux.
Implemented in dotnamecpp::utils::EmscriptenPlatformInfo, dotnamecpp::utils::UnixPlatformInfo, and dotnamecpp::utils::WindowsPlatformInfo.
|
nodiscardpure virtual |
Check if the platform is macOS.
Implemented in dotnamecpp::utils::EmscriptenPlatformInfo, dotnamecpp::utils::UnixPlatformInfo, and dotnamecpp::utils::WindowsPlatformInfo.
|
nodiscardpure virtual |
Check if the platform is Windows.
Implemented in dotnamecpp::utils::EmscriptenPlatformInfo, dotnamecpp::utils::UnixPlatformInfo, and dotnamecpp::utils::WindowsPlatformInfo.