diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-06-07T14·49+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-06-07T14·49+0200 |
commit | aa952d5f0bc623a1584f2d589209f586e594c75f (patch) | |
tree | 685780bc5155600f5f27f04c09302e2644236cad /src/libutil/config.hh | |
parent | b8283773bd64d7da6859ed520ee19867742a03ba (diff) |
nix: Add --help-config flag
Diffstat (limited to 'src/libutil/config.hh')
-rw-r--r-- | src/libutil/config.hh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libutil/config.hh b/src/libutil/config.hh index 2ca643fe0e71..994eab911707 100644 --- a/src/libutil/config.hh +++ b/src/libutil/config.hh @@ -31,6 +31,8 @@ class Config { friend class AbstractSetting; +public: + struct SettingData { bool isAlias; @@ -40,7 +42,11 @@ class Config { } }; - std::map<std::string, SettingData> _settings; + typedef std::map<std::string, SettingData> Settings; + +private: + + Settings _settings; StringMap initials; @@ -58,6 +64,8 @@ public: StringMap getSettings(bool overridenOnly = false); + const Settings & _getSettings() { return _settings; } + void applyConfigFile(const Path & path, bool fatal = false); void resetOverriden(); |