6#ifndef CONFIGURATION_HPP
7#define CONFIGURATION_HPP
21 using json = nlohmann::json;
Loads and stores the configuration file.
Definition Configuration.hpp:17
friend class App
Definition Configuration.hpp:18
json m_config
The configuration file.
Definition Configuration.hpp:61
static json & config()
Get the configuration file.
Definition Utils.cpp:74
void initialize()
Initialize the Configuration class.
Definition Utils.cpp:26
static json create_default()
Create the default configuration file.
Definition Utils.cpp:61
static Configuration * instance()
Get the instance of the Configuration class.
Definition Utils.cpp:69
static std::filesystem::path get_config_path()
Get the path to the configuration file.
Definition Utils.cpp:46
static constexpr std::string_view CONFIG_FILE_NAME
The default name of the configuration file.
Definition Configuration.hpp:56
nlohmann::json json
Definition Configuration.hpp:21