DotNameLib
Loading...
Searching...
No Matches
WindowsPlatformInfo.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace dotnamecpp::utils {
6
11 class WindowsPlatformInfo final : public IPlatformInfo {
12 public:
14
19 ~WindowsPlatformInfo() 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
Definition IPlatformInfo.hpp:12
Definition UtilsError.hpp:93
bool isLinux() const override
Check if the platform is Linux.
Definition WindowsPlatformInfo.cpp:48
WindowsPlatformInfo & operator=(const WindowsPlatformInfo &)=delete
bool isWindows() const override
Check if the platform is Windows.
Definition WindowsPlatformInfo.cpp:46
bool isEmscripten() const override
Check if the platform is Emscripten.
Definition WindowsPlatformInfo.cpp:52
WindowsPlatformInfo(const WindowsPlatformInfo &)=delete
WindowsPlatformInfo(WindowsPlatformInfo &&)=delete
bool isMacOS() const override
Check if the platform is macOS.
Definition WindowsPlatformInfo.cpp:50
Result< std::filesystem::path, FileError > getExecutablePath() const override
Get the Executable Path object.
Definition WindowsPlatformInfo.cpp:14
Result< std::filesystem::path, FileError > getExecutableDirectory() const override
Get the Executable Directory object.
Definition WindowsPlatformInfo.cpp:37
std::string getPlatformName() const override
Get the Platform Name object.
Definition WindowsPlatformInfo.cpp:12
WindowsPlatformInfo & operator=(WindowsPlatformInfo &&)=delete
Platform getPlatform() const override
Get the Platform object.
Definition WindowsPlatformInfo.cpp:10
Definition DirectoryManager.cpp:5
Platform
Definition IPlatformInfo.hpp:10