Configuration is made and initialized in the main.
This commit is contained in:
parent
b71a49cfbe
commit
a0a74729fc
2 changed files with 27 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
|||
#include "../include/configuration.hpp"
|
||||
#include "../include/information.hpp"
|
||||
#include "../include/cache_files.hpp"
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
std::pair<gemini::Information, std::optional<gemini::CacheFiles>> gemini::Configuration::create_infos() const {
|
||||
simdjson::dom::parser parser;
|
||||
spdlog::debug("Creating infos and cache if enabled");
|
||||
const auto config = parser.load(filename);
|
||||
const Information infos{
|
||||
config["cache"]["enable_cache"].get_bool(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue