ChessPlusPlus  WIP
cplusplus.com Community Project
chesspp::config::ResourcesConfig Class Reference

Holds configuration for resources (graphics, fonts, etc) More...

#include <ResourcesConfig.hpp>

Inheritance diagram for chesspp::config::ResourcesConfig:
chesspp::config::Configuration

Public Member Functions

 ResourcesConfig ()
 Loads resource configuration from "config/chesspp/resources.json". More...
 
res::ResourceManagerresources () noexcept
 Get the chesspp::res::ResourceManager. More...
 
- Public Member Functions inherited from chesspp::config::Configuration
 Configuration (std::string const &configFile) noexcept(false)
 Loads the configuration from the given file path. More...
 
virtual ~Configuration ()=default
 
template<typename... Path>
auto setting (Path const &...path) -> decltype(reader.navigate(path...))
 Access values in the configuration. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from chesspp::config::Configuration
static std::string executablePath ()
 Get the path to the directory the executable is in. More...
 
- Protected Attributes inherited from chesspp::config::Configuration
std::string res_path
 Stores the path to the directory where configuration paths are relative to. More...
 
util::JsonReader reader
 The chessp::util::JsonReader for reading the configuration values. More...
 

Detailed Description

Holds configuration for resources (graphics, fonts, etc)

Constructor & Destructor Documentation

chesspp::config::ResourcesConfig::ResourcesConfig ( )
inline

Loads resource configuration from "config/chesspp/resources.json".

Member Function Documentation

res::ResourceManager& chesspp::config::ResourcesConfig::resources ( )
inlinenoexcept

The documentation for this class was generated from the following file: