2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "debug_settings_reader.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
#include "debug_file_reader.h"
|
|
|
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
|
|
|
|
|
|
const char *SettingsReader::settingsFileName = "igdrcl.config";
|
|
|
|
|
|
|
|
|
|
SettingsReader *SettingsReader::createFileReader() {
|
|
|
|
|
std::ifstream settingsFile;
|
|
|
|
|
settingsFile.open(settingsFileName);
|
|
|
|
|
if (settingsFile.is_open()) {
|
|
|
|
|
settingsFile.close();
|
|
|
|
|
return new SettingsFileReader();
|
|
|
|
|
}
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
2018-06-12 21:54:39 +02:00
|
|
|
}; // namespace OCLRT
|