r/cpp•
random_bytes

instantConfig, makes loading configuration files easier

I would like to introduce instantConfig, my last project, which I've been working on and off for about a year.

The idea is to load settings from a configuration file using template metaprogramming through a high level description of the content.

The documentation is rather descriptive, so I won't add anything here.

I also would like to use this post for two requests :

  • I'm not sure I'm satisfied with my way of creating static identifiers based on strings : I don't like being forced into using macros, and the limitation in terms of number of characters is sketchy. I couldn't find a better solution for now, but if anyone of you have a better idea, I'm all ears (and eyes).
  • One of my future goal is to provide a light parser to make the library ready to use on its own. I would rather have someone else implement it, as I lack time to do it on my own. Is anyone interested in taking part in this project? Do any of you know of a good parser library that is header-only and with a license compatible with the use I want to make of it?

If you have any question, feel free to ask.

Posted Jun 14, 2015, 6:18 PM UTC · edited

62
jetucker•

Nice writeup, I'll keep it in mind for future use.

1
doom_Oo7•

For json you could use jeayeson which is header-only and permissive-licensed

1