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