DotNameLib
Loading...
Searching...
No Matches
EmscriptenPlatformInfo.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace dotnamecpp::utils {
6
12 public:
14
19 ~EmscriptenPlatformInfo() override = default;
20
21 [[nodiscard]]
22 Platform getPlatform() const override;
23 [[nodiscard]]
24 std::string getPlatformName() const override;
25 [[nodiscard]]
27 [[nodiscard]]
29 [[nodiscard]]
30 bool isWindows() const override;
31 [[nodiscard]]
32 bool isLinux() const override;
33 [[nodiscard]]
34 bool isMacOS() const override;
35 [[nodiscard]]
36 bool isEmscripten() const override;
37 };
38
39} // namespace dotnamecpp::utils
bool isMacOS() const override
Check if the platform is macOS.
Definition EmscriptenPlatformInfo.cpp:32
Result< std::filesystem::path, FileError > getExecutableDirectory() const override
Get the Executable Directory object.
Definition EmscriptenPlatformInfo.cpp:24
EmscriptenPlatformInfo & operator=(EmscriptenPlatformInfo &&)=delete
bool isEmscripten() const override
Check if the platform is Emscripten.
Definition EmscriptenPlatformInfo.cpp:34
bool isWindows() const override
Check if the platform is Windows.
Definition EmscriptenPlatformInfo.cpp:28
Platform getPlatform() const override
Get the Platform object.
Definition EmscriptenPlatformInfo.cpp:6
EmscriptenPlatformInfo & operator=(const EmscriptenPlatformInfo &)=delete
Result< std::filesystem::path, FileError > getExecutablePath() const override
Get the Executable Path object.
Definition EmscriptenPlatformInfo.cpp:10
std::string getPlatformName() const override
Get the Platform Name object.
Definition EmscriptenPlatformInfo.cpp:8
bool isLinux() const override
Check if the platform is Linux.
Definition EmscriptenPlatformInfo.cpp:30
EmscriptenPlatformInfo(EmscriptenPlatformInfo &&)=delete
EmscriptenPlatformInfo(const EmscriptenPlatformInfo &)=delete
Definition IPlatformInfo.hpp:12
Definition UtilsError.hpp:93
Definition DirectoryManager.cpp:5
Platform
Definition IPlatformInfo.hpp:10