mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-07-02 14:04:16 +00:00
Make a SettingsBag class that wraps the ini settings.
Easily allows to have default values for options that are not specified in the loaded ini file.
This commit is contained in:
parent
34b4588481
commit
b03c3198b8
14 changed files with 134 additions and 37 deletions
|
@ -29,7 +29,7 @@ namespace redis {
|
|||
} //namespace redis
|
||||
|
||||
namespace tawashi {
|
||||
class IniFile;
|
||||
class SettingsBag;
|
||||
|
||||
class Response {
|
||||
public:
|
||||
|
@ -43,7 +43,7 @@ namespace tawashi {
|
|||
Location
|
||||
};
|
||||
|
||||
Response (Types parRespType, std::string&& parValue, std::string&& parPageBaseName, const IniFile& parIni, bool parWantRedis);
|
||||
Response (Types parRespType, std::string&& parValue, std::string&& parPageBaseName, const SettingsBag& parSettings, bool parWantRedis);
|
||||
const cgi::Env& cgi_env() const;
|
||||
void change_type (Types parRespType, std::string&& parValue);
|
||||
const boost::string_ref& base_uri() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue