| 
    Kodi Documentation 22.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
Class to concentrate all methods related to GPU information. More...
#include <GpuInfo.h>
  
Public Member Functions | |
| CGPUInfo ()=default | |
| virtual | ~CGPUInfo ()=default | 
| bool | GetTemperature (CTemperature &temperature) const | 
| Get the temperature of the GPU.   | |
Static Public Member Functions | |
| static std::unique_ptr< CGPUInfo > | GetGPUInfo () | 
| Getter from the specific platform GPUInfo.   | |
Protected Member Functions | |
| virtual bool | SupportsCustomTemperatureCommand () const | 
| Checks if the specific platform implementation supports obtaining the GPU temperature via the execution of a custom command line command.   | |
| 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.   | |
| virtual bool | GetGPUTemperatureFromCommand (CTemperature &temperature, const std::string &cmd) const =0 | 
| Get the GPU temperature from a user provided command (advanced settings)   | |
Class to concentrate all methods related to GPU information.
This is used by the Info interface to obtain the current GPU temperature
      
  | 
  default | 
      
  | 
  virtualdefault | 
      
  | 
  static | 
Getter from the specific platform GPUInfo.
      
  | 
  protectedpure virtual | 
Get the GPU temperature from the platform SDK.
| [in,out] | temperature | - the temperature to fill with the result | 
      
  | 
  protectedpure virtual | 
Get the GPU temperature from a user provided command (advanced settings)
| [in,out] | temperature | - the temperature to fill with the result | 
Implemented in CGPUInfoPosix.
| bool CGPUInfo::GetTemperature | ( | CTemperature & | temperature | ) | const | 
Get the temperature of the GPU.
| [in,out] | temperature | - the temperature to fill with the result | 
      
  | 
  inlineprotectedvirtual | 
Checks if the specific platform implementation supports obtaining the GPU temperature via the execution of a custom command line command.
Reimplemented in CGPUInfoPosix.
      
  | 
  inlineprotectedvirtual | 
Checks if the specific platform implementation supports obtaining the GPU temperature from the platform SDK itself.