Class PlatformConfig¶
Defined in File PlatformConfig.hpp
Nested Relationships¶
Class Documentation¶
-
class PlatformConfig¶
Public Types
Public Functions
-
~PlatformConfig() = default¶
-
PlatformConfig()¶
Creates a new PlatformConfig.
-
PlatformConfig(const PlatformConfig &other)¶
Copy-Construct a PlatformConfig from another PlatformConfig.
- Parameters
other – [in] Source PlatformConfig
- Returns
Handle to the Copy-Constructed PlatformConfig
-
PlatformType_t getPlatformType() const¶
Retrieves the platform type.
- Returns
Platform type
-
bool isValid() const¶
Indicates whther the plaform configuration is valid.
- Returns
True if the platform configuration is valid; false otherwise.
-
bool getUserGpuConfig(UserGpuConfig &userGpuConfig) const¶
Retrieves the Gpu configuration.
- Parameters
userGpuConfig – [out] The passed in userGpuConfig populated with the Gpu configuration on return.
- Returns
True if Gpu configuration was retrieved; false otherwise.
-
bool setUserGpuConfig(UserGpuConfig &userGpuConfig)¶
Sets the Gpu configuration.
- Parameters
userGpuConfig – [in] Gpu Configuration
- Returns
True if Gpu configuration was successfully set; false otherwise.
-
bool setPlatformOptions(const std::string &options)¶
Sets the platform options.
- Parameters
options – [in] Options as a string in the form of “keyword:options”
- Returns
True if options are pass validation; otherwise false. If false, the options are not updated.
-
bool isOptionsValid() const¶
Indicates whther the plaform configuration is valid.
- Returns
True if the platform configuration is valid; false otherwise.
-
std::string getPlatformOptions() const¶
Gets the platform options.
- Returns
Options as a string
-
bool setPlatformOptionValue(const std::string &optionName, const std::string &value)¶
Sets the platform options.
- Parameters
optionName – [in] Name of platform options”
value – [in] Value of specified optionName
- Returns
If true, add “optionName:value” to platform options if optionName don’t exist, otherwise update the value of specified optionName. If false, the platform options will not be changed.
-
bool removePlatformOptionValue(const std::string &optionName, const std::string &value)¶
Removes the platform options.
- Parameters
optionName – [in] Name of platform options”
value – [in] Value of specified optionName
- Returns
If true, removed “optionName:value” to platform options if optionName don’t exist, do nothing. If false, the platform options will not be changed.
Public Static Functions
-
static void SetIsUserGLBuffer(bool isUserGLBuffer)¶
-
static bool GetIsUserGLBuffer()¶
-
struct PlatformConfigInfo¶
A union class user platform configuration information
Public Members
-
UserGpuConfig userGpuConfig¶
Holds user GPU Configuration.
-
UserGpuConfig userGpuConfig¶
-
~PlatformConfig() = default¶