2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2020-02-22 09:28:27 +01:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2019-02-27 11:39:32 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-03-16 12:41:25 +01:00
|
|
|
#include "shared/source/os_interface/driver_info.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
#include <memory>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
class SettingsReader;
|
|
|
|
|
|
|
|
|
|
class DriverInfoWindows : public DriverInfo {
|
|
|
|
|
public:
|
2020-03-16 10:11:27 +01:00
|
|
|
DriverInfoWindows(std::string &&path);
|
2017-12-21 00:45:38 +01:00
|
|
|
std::string getDeviceName(std::string defaultName);
|
|
|
|
|
std::string getVersion(std::string defaultVersion);
|
|
|
|
|
|
|
|
|
|
protected:
|
2020-03-16 10:11:27 +01:00
|
|
|
static std::string trimRegistryKey(std::string key);
|
|
|
|
|
const std::string path;
|
2017-12-21 00:45:38 +01:00
|
|
|
std::unique_ptr<SettingsReader> registryReader;
|
|
|
|
|
};
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|