NixonCpp
Loading...
Searching...
No Matches
nixoncpp::utils::UnixPlatformInfo Class Referencefinal

Unix-like platform information implementation (Linux/macOS). More...

#include <UnixPlatformInfo.hpp>

Inheritance diagram for nixoncpp::utils::UnixPlatformInfo:
Collaboration diagram for nixoncpp::utils::UnixPlatformInfo:

Public Member Functions

 UnixPlatformInfo ()=default
 UnixPlatformInfo (const UnixPlatformInfo &)=delete
UnixPlatformInfooperator= (const UnixPlatformInfo &)=delete
 UnixPlatformInfo (UnixPlatformInfo &&)=delete
UnixPlatformInfooperator= (UnixPlatformInfo &&)=delete
 ~UnixPlatformInfo () 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 nixoncpp::utils::IPlatformInfo
virtual ~IPlatformInfo ()=default

Detailed Description

Unix-like platform information implementation (Linux/macOS).

Constructor & Destructor Documentation

◆ UnixPlatformInfo() [1/3]

nixoncpp::utils::UnixPlatformInfo::UnixPlatformInfo ( )
default
Here is the caller graph for this function:

◆ UnixPlatformInfo() [2/3]

nixoncpp::utils::UnixPlatformInfo::UnixPlatformInfo ( const UnixPlatformInfo & )
delete
Here is the call graph for this function:

◆ UnixPlatformInfo() [3/3]

nixoncpp::utils::UnixPlatformInfo::UnixPlatformInfo ( UnixPlatformInfo && )
delete
Here is the call graph for this function:

◆ ~UnixPlatformInfo()

nixoncpp::utils::UnixPlatformInfo::~UnixPlatformInfo ( )
overridedefault

Member Function Documentation

◆ getExecutableDirectory()

Result< std::filesystem::path, FileError > nixoncpp::utils::UnixPlatformInfo::getExecutableDirectory ( ) const
nodiscardoverridevirtual

Get the Executable Directory object.

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

Implements nixoncpp::utils::IPlatformInfo.

Here is the call graph for this function:

◆ getExecutablePath()

Result< std::filesystem::path, FileError > nixoncpp::utils::UnixPlatformInfo::getExecutablePath ( ) const
nodiscardoverridevirtual

Get the Executable Path object.

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

Implements nixoncpp::utils::IPlatformInfo.

Here is the caller graph for this function:

◆ getPlatform()

Platform nixoncpp::utils::UnixPlatformInfo::getPlatform ( ) const
nodiscardoverridevirtual

Get the Platform object.

Returns
Platform

Implements nixoncpp::utils::IPlatformInfo.

◆ getPlatformName()

std::string nixoncpp::utils::UnixPlatformInfo::getPlatformName ( ) const
nodiscardoverridevirtual

Get the Platform Name object.

Returns
std::string

Implements nixoncpp::utils::IPlatformInfo.

◆ isEmscripten()

bool nixoncpp::utils::UnixPlatformInfo::isEmscripten ( ) const
nodiscardoverridevirtual

Check if the platform is Emscripten.

Returns
true
false

Implements nixoncpp::utils::IPlatformInfo.

◆ isLinux()

bool nixoncpp::utils::UnixPlatformInfo::isLinux ( ) const
nodiscardoverridevirtual

Check if the platform is Linux.

Returns
true
false

Implements nixoncpp::utils::IPlatformInfo.

◆ isMacOS()

bool nixoncpp::utils::UnixPlatformInfo::isMacOS ( ) const
nodiscardoverridevirtual

Check if the platform is macOS.

Returns
true
false

Implements nixoncpp::utils::IPlatformInfo.

◆ isWindows()

bool nixoncpp::utils::UnixPlatformInfo::isWindows ( ) const
nodiscardoverridevirtual

Check if the platform is Windows.

Returns
true
false

Implements nixoncpp::utils::IPlatformInfo.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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