Files
lix/src/libutil
Eelco Dolstra 2040240e23 Add a Config class to simplify adding configuration settings
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.
2017-04-13 16:03:31 +02:00
..
2017-03-06 13:56:20 +01:00
2017-03-22 11:53:33 +01:00
2016-11-07 14:35:47 +01:00
2016-04-20 14:12:38 +02:00
2016-10-06 17:00:52 +02:00
2016-10-06 17:00:52 +02:00
2017-03-15 16:49:06 +01:00
2017-04-13 16:03:31 +02:00
2017-04-13 16:03:31 +02:00
2017-01-26 20:40:33 +01:00
2017-04-06 14:30:31 +02:00
2017-04-13 16:03:31 +02:00
2015-07-17 20:13:56 +02:00
2014-02-26 18:55:18 +01:00