kodi
Protected Member Functions | List of all members
CGPUInfoPosix Class Reference
Inheritance diagram for CGPUInfoPosix:
Inheritance graph
[legend]
Collaboration diagram for CGPUInfoPosix:
Collaboration graph
[legend]

Protected Member Functions

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. More...
 
virtual bool GetGPUTemperatureFromCommand (CTemperature &temperature, const std::string &cmd) const override
 Get the GPU temperature from a user provided command (advanced settings) More...
 
- 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. More...
 
virtual bool GetGPUPlatformTemperature (CTemperature &temperature) const =0
 Get the GPU temperature from the platform SDK. More...
 

Additional Inherited Members

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

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: