DotNameLib
Loading...
Searching...
No Matches
dotnamecpp::utils::EmscriptenPlatformInfo Class Referencefinal

Emscripten-specific platform information implementation. More...

#include <EmscriptenPlatformInfo.hpp>

Inheritance diagram for dotnamecpp::utils::EmscriptenPlatformInfo:
Collaboration diagram for dotnamecpp::utils::EmscriptenPlatformInfo:

Public Member Functions

 EmscriptenPlatformInfo ()=default
 EmscriptenPlatformInfo (const EmscriptenPlatformInfo &)=delete
EmscriptenPlatformInfooperator= (const EmscriptenPlatformInfo &)=delete
 EmscriptenPlatformInfo (EmscriptenPlatformInfo &&)=delete
EmscriptenPlatformInfooperator= (EmscriptenPlatformInfo &&)=delete
 ~EmscriptenPlatformInfo () override=default
Platform getPlatform () const override
 Get the Platform object.
std::string getPlatformName () const override
 Get the Platform Name object.
Result< std::filesystem::path, FileErrorgetExecutablePath () const override
 Get the Executable Path object.
Result< std::filesystem::path, FileErrorgetExecutableDirectory () const override
 Get the Executable Directory object.
bool isWindows () const override
 Check if the platform is Windows.
bool isLinux () const override
 Check if the platform is Linux.
bool isMacOS () const override
 Check if the platform is macOS.
bool isEmscripten () const override
 Check if the platform is Emscripten.
Public Member Functions inherited from dotnamecpp::utils::IPlatformInfo
virtual ~IPlatformInfo ()=default

Detailed Description

Emscripten-specific platform information implementation.

Constructor & Destructor Documentation

◆ EmscriptenPlatformInfo() [1/3]

dotnamecpp::utils::EmscriptenPlatformInfo::EmscriptenPlatformInfo ( )
default
Here is the caller graph for this function:

◆ EmscriptenPlatformInfo() [2/3]

dotnamecpp::utils::EmscriptenPlatformInfo::EmscriptenPlatformInfo ( const EmscriptenPlatformInfo & )
delete
Here is the call graph for this function:

◆ EmscriptenPlatformInfo() [3/3]

dotnamecpp::utils::EmscriptenPlatformInfo::EmscriptenPlatformInfo ( EmscriptenPlatformInfo && )
delete
Here is the call graph for this function:

◆ ~EmscriptenPlatformInfo()

dotnamecpp::utils::EmscriptenPlatformInfo::~EmscriptenPlatformInfo ( )
overridedefault

Member Function Documentation

◆ getExecutableDirectory()

Result< std::filesystem::path, FileError > dotnamecpp::utils::EmscriptenPlatformInfo::getExecutableDirectory ( ) const
nodiscardoverridevirtual

Get the Executable Directory object.

Returns
Result<std::filesystem::path, FileError>

Implements dotnamecpp::utils::IPlatformInfo.

Here is the call graph for this function:

◆ getExecutablePath()

Result< std::filesystem::path, FileError > dotnamecpp::utils::EmscriptenPlatformInfo::getExecutablePath ( ) const
nodiscardoverridevirtual

Get the Executable Path object.

Returns
Result<std::filesystem::path, FileError>

Implements dotnamecpp::utils::IPlatformInfo.

Here is the caller graph for this function:

◆ getPlatform()

Platform dotnamecpp::utils::EmscriptenPlatformInfo::getPlatform ( ) const
nodiscardoverridevirtual

Get the Platform object.

Returns
Platform

Implements dotnamecpp::utils::IPlatformInfo.

◆ getPlatformName()

std::string dotnamecpp::utils::EmscriptenPlatformInfo::getPlatformName ( ) const
nodiscardoverridevirtual

Get the Platform Name object.

Returns
std::string

Implements dotnamecpp::utils::IPlatformInfo.

◆ isEmscripten()

bool dotnamecpp::utils::EmscriptenPlatformInfo::isEmscripten ( ) const
nodiscardoverridevirtual

Check if the platform is Emscripten.

Returns
true
false

Implements dotnamecpp::utils::IPlatformInfo.

◆ isLinux()

bool dotnamecpp::utils::EmscriptenPlatformInfo::isLinux ( ) const
nodiscardoverridevirtual

Check if the platform is Linux.

Returns
true
false

Implements dotnamecpp::utils::IPlatformInfo.

◆ isMacOS()

bool dotnamecpp::utils::EmscriptenPlatformInfo::isMacOS ( ) const
nodiscardoverridevirtual

Check if the platform is macOS.

Returns
true
false

Implements dotnamecpp::utils::IPlatformInfo.

◆ isWindows()

bool dotnamecpp::utils::EmscriptenPlatformInfo::isWindows ( ) const
nodiscardoverridevirtual

Check if the platform is Windows.

Returns
true
false

Implements dotnamecpp::utils::IPlatformInfo.

◆ operator=() [1/2]

EmscriptenPlatformInfo & dotnamecpp::utils::EmscriptenPlatformInfo::operator= ( const EmscriptenPlatformInfo & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

EmscriptenPlatformInfo & dotnamecpp::utils::EmscriptenPlatformInfo::operator= ( EmscriptenPlatformInfo && )
delete
Here is the call graph for this function:

The documentation for this class was generated from the following files: