Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CGPUInfoPosix Class Reference

#include <GPUInfoPosix.h>

Inheritance diagram for CGPUInfoPosix:
CGPUInfo CGPUInfoAndroid CGPUInfoDarwinEmbed CGPUInfoFreebsd CGPUInfoLinux CGPUInfoMacOS

Protected Member Functions

 CGPUInfoPosix ()=default
 
virtual ~CGPUInfoPosix ()=default
 
virtual bool SupportsCustomTemperatureCommand () const override
 Checks if the specific platform implementation supports obtaining the GPU temperature via the execution of a custom command line command.
 
virtual bool GetGPUTemperatureFromCommand (CTemperature &temperature, const std::string &cmd) const override
 Get the GPU temperature from a user provided command (advanced settings)
 
- Protected Member Functions inherited from CGPUInfo
virtual bool SupportsPlatformTemperature () const
 Checks if the specific platform implementation supports obtaining the GPU temperature from the platform SDK itself.
 
virtual bool GetGPUPlatformTemperature (CTemperature &temperature) const =0
 Get the GPU temperature from the platform SDK.
 

Additional Inherited Members

- Public Member Functions inherited from CGPUInfo
 CGPUInfo ()=default
 
virtual ~CGPUInfo ()=default
 
bool GetTemperature (CTemperature &temperature) const
 Get the temperature of the GPU.
 
- Static Public Member Functions inherited from CGPUInfo
static std::unique_ptr< CGPUInfoGetGPUInfo ()
 Getter from the specific platform GPUInfo.
 

Constructor & Destructor Documentation

◆ CGPUInfoPosix()

CGPUInfoPosix::CGPUInfoPosix ( )
protecteddefault

◆ ~CGPUInfoPosix()

virtual CGPUInfoPosix::~CGPUInfoPosix ( )
protectedvirtualdefault

Member Function Documentation

◆ GetGPUTemperatureFromCommand()

bool CGPUInfoPosix::GetGPUTemperatureFromCommand ( CTemperature & temperature,
const std::string & cmd ) const
overrideprotectedvirtual

Get the GPU temperature from a user provided command (advanced settings)

Note
platform implementations must override this. For this to take effect SupportsCustomTemperatureCommand must be true.
Parameters
[in,out]temperature- the temperature to fill with the result
Returns
true if obtaining the GPU temperature succeeded, false otherwise

Implements CGPUInfo.

◆ SupportsCustomTemperatureCommand()

bool CGPUInfoPosix::SupportsCustomTemperatureCommand ( ) const
overrideprotectedvirtual

Checks if the specific platform implementation supports obtaining the GPU temperature via the execution of a custom command line command.

Note
this is false on the base class but may be overridden by the specific platform implementation. Custom GPU command is defined in advancedsettings.
Returns
true if the implementation supports obtaining the GPU temperature from a custom command, false otherwise

Reimplemented from CGPUInfo.


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