Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-04-14 | Fix 32-bit build | Eelco Dolstra | 1 | -1/+3 | |
http://hydra.nixos.org/build/51569816 | |||||
2017-04-13 | Convert Settings to the new config system | Eelco Dolstra | 1 | -21/+83 | |
This makes all config options self-documenting. Unknown or unparseable config settings and --option flags now cause a warning. | |||||
2017-04-13 | Support arbitrary numeric types for settings | Eelco Dolstra | 1 | -4/+17 | |
2017-04-13 | Validate Boolean settings better | Eelco Dolstra | 1 | -1/+6 | |
2017-04-13 | Add a Config class to simplify adding configuration settings | Eelco Dolstra | 1 | -0/+112 | |
The typical use is to inherit Config and add Setting<T> members: class MyClass : private Config { Setting<int> foo{this, 123, "foo", "the number of foos to use"}; Setting<std::string> bar{this, "blabla", "bar", "the name of the bar"}; MyClass() : Config(readConfigFile("/etc/my-app.conf")) { std::cout << foo << "\n"; // will print 123 unless overriden } }; Currently, this is used by Store and its subclasses for store parameters. You now get a warning if you specify a non-existant store parameter in a store URI. |