diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 19:57:00 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 20:06:56 +0100 |
commit | 6af7742c35ecdf2831908443ca0e04bf23317a96 (patch) | |
tree | 9ada42d1d4b6bcb2618c1325f155429d2035808a /src/ctor.h | |
parent | 648c89e879f739f82ed6dba7df7243e54b98601f (diff) |
Rename Configuation struct to configuration and make get/has functions member functions.
Diffstat (limited to 'src/ctor.h')
-rw-r--r-- | src/ctor.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -141,8 +141,11 @@ constexpr auto ctor_includedir = "ctor-includedir"; constexpr auto ctor_libdir = "ctor-libdir"; } -struct Configuration +struct configuration { + bool has(const std::string& key) const; + const std::string& get(const std::string& key, const std::string& default_value = {}) const; + std::vector<std::string> args; // vector of arguments used when last calling configure std::map<std::string, std::string> env; // env used when last calling configure @@ -150,9 +153,6 @@ struct Configuration std::map<std::string, ctor::flags> externals; }; -const Configuration& configuration(); -bool hasConfiguration(const std::string& key); -const std::string& getConfiguration(const std::string& key, - const std::string& defaultValue = {}); +const ctor::configuration& get_configuration(); } // namespace ctor:: |