DotNameLib
Loading...
Searching...
No Matches
WindowsPlatformInfo.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Utils/Platform/IPlatformInfo.hpp
>
4
5
namespace
dotnamecpp::utils
{
6
11
class
WindowsPlatformInfo
final :
public
IPlatformInfo
{
12
public
:
13
WindowsPlatformInfo
() =
default
;
14
15
WindowsPlatformInfo
(
const
WindowsPlatformInfo
&) =
delete
;
16
WindowsPlatformInfo
&
operator=
(
const
WindowsPlatformInfo
&) =
delete
;
17
WindowsPlatformInfo
(
WindowsPlatformInfo
&&) =
delete
;
18
WindowsPlatformInfo
&
operator=
(
WindowsPlatformInfo
&&) =
delete
;
19
~WindowsPlatformInfo
()
override
=
default
;
20
21
[[nodiscard]]
22
Platform
getPlatform
()
const override
;
23
[[nodiscard]]
24
std::string
getPlatformName
()
const override
;
25
[[nodiscard]]
26
Result<std::filesystem::path, FileError>
getExecutablePath
()
const override
;
27
[[nodiscard]]
28
Result<std::filesystem::path, FileError>
getExecutableDirectory
()
const override
;
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
IPlatformInfo.hpp
dotnamecpp::utils::IPlatformInfo
Definition
IPlatformInfo.hpp:12
dotnamecpp::utils::Result
Definition
UtilsError.hpp:93
dotnamecpp::utils::WindowsPlatformInfo::isLinux
bool isLinux() const override
Check if the platform is Linux.
Definition
WindowsPlatformInfo.cpp:48
dotnamecpp::utils::WindowsPlatformInfo::operator=
WindowsPlatformInfo & operator=(const WindowsPlatformInfo &)=delete
dotnamecpp::utils::WindowsPlatformInfo::isWindows
bool isWindows() const override
Check if the platform is Windows.
Definition
WindowsPlatformInfo.cpp:46
dotnamecpp::utils::WindowsPlatformInfo::isEmscripten
bool isEmscripten() const override
Check if the platform is Emscripten.
Definition
WindowsPlatformInfo.cpp:52
dotnamecpp::utils::WindowsPlatformInfo::WindowsPlatformInfo
WindowsPlatformInfo(const WindowsPlatformInfo &)=delete
dotnamecpp::utils::WindowsPlatformInfo::~WindowsPlatformInfo
~WindowsPlatformInfo() override=default
dotnamecpp::utils::WindowsPlatformInfo::WindowsPlatformInfo
WindowsPlatformInfo(WindowsPlatformInfo &&)=delete
dotnamecpp::utils::WindowsPlatformInfo::isMacOS
bool isMacOS() const override
Check if the platform is macOS.
Definition
WindowsPlatformInfo.cpp:50
dotnamecpp::utils::WindowsPlatformInfo::getExecutablePath
Result< std::filesystem::path, FileError > getExecutablePath() const override
Get the Executable Path object.
Definition
WindowsPlatformInfo.cpp:14
dotnamecpp::utils::WindowsPlatformInfo::getExecutableDirectory
Result< std::filesystem::path, FileError > getExecutableDirectory() const override
Get the Executable Directory object.
Definition
WindowsPlatformInfo.cpp:37
dotnamecpp::utils::WindowsPlatformInfo::getPlatformName
std::string getPlatformName() const override
Get the Platform Name object.
Definition
WindowsPlatformInfo.cpp:12
dotnamecpp::utils::WindowsPlatformInfo::operator=
WindowsPlatformInfo & operator=(WindowsPlatformInfo &&)=delete
dotnamecpp::utils::WindowsPlatformInfo::WindowsPlatformInfo
WindowsPlatformInfo()=default
dotnamecpp::utils::WindowsPlatformInfo::getPlatform
Platform getPlatform() const override
Get the Platform object.
Definition
WindowsPlatformInfo.cpp:10
dotnamecpp::utils
Definition
DirectoryManager.cpp:5
dotnamecpp::utils::Platform
Platform
Definition
IPlatformInfo.hpp:10
src
Utils
Platform
WindowsPlatformInfo.hpp
Generated by
1.14.0