Loads and stores the configuration file.  
 More...
#include <Configuration.hpp>
|  | 
| using | json = nlohmann::json | 
|  | 
|  | 
| constexpr static std::string_view | CONFIG_FILE_NAME = "config.json" | 
|  | The default name of the configuration file.  More... 
 | 
|  | 
Loads and stores the configuration file. 
The configuration file is loaded from the default path: CONFIG_FILE_NAME=config.json. The configuration file is stored in a static variable, so it is shared between all instances of the Configuration class. 
◆ json
◆ config()
Get the configuration file. 
- Returns
- The configuration file. 
 
 
◆ instance()
◆ initialize()
      
        
          | void engine::util::Configuration::initialize | ( |  | ) |  | 
      
 
 
◆ get_config_path()
  
  | 
        
          | std::filesystem::path engine::util::Configuration::get_config_path | ( |  | ) |  |  | staticprivate | 
 
Get the path to the configuration file. 
- Returns
- The path to the configuration file. 
 
 
◆ create_default()
  
  | 
        
          | nlohmann::json engine::util::Configuration::create_default | ( |  | ) |  |  | staticprivate | 
 
Create the default configuration file. 
- Returns
- The default configuration file. 
 
 
◆ App
◆ CONFIG_FILE_NAME
  
  | 
        
          | constexpr static std::string_view engine::util::Configuration::CONFIG_FILE_NAME = "config.json" |  | staticconstexprprivate | 
 
The default name of the configuration file. 
 
 
◆ m_config
  
  | 
        
          | json engine::util::Configuration::m_config |  | private | 
 
 
The documentation for this class was generated from the following files: