P
P
pixik2015-11-09 13:50:04
C++ / C#
pixik, 2015-11-09 13:50:04

What libraries do you use to create a configurator for c++ programs?

Good day!
The project uses some parameters that would be convenient to change from the config, because they are unchanged at runtime, and I would not want to recompile anything when changing any parameter.
Previously, I wrote my bike config, with the help of which I added parameters to the file and read them during initialization.
Now, in another project, there was a need for a similar tool, which made me think, maybe there are similar tools in boost or in stl already, so that every time I don’t write the config processing in a new way, while already obviously debugged and tested?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2015-11-09
@pixik

https://github.com/nlohmann/json

D
Dmitry Snytkin, 2015-11-09
@dima11221122

In Qt, this is QSettings. It can encapsulate work with settings stores depending on the OS (Windows - registry, Linux - local ini files in my opinion). You can hardcode the use of an ini file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question