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