Answer the question
In order to leave comments, you need to log in
Recommend a C++ library for working with configs
Sectional config, like:
[Section1] #comment
var=value
var2=value
[Section2]
var=value
.
[Section2]
var=value
var2=value
Please note that the names of the sections can be the same, but I need the values inside them not to overlap. Well, if there is still the possibility of recording.
Found cfgparser , but it is still sawing and sawing
Answer the question
In order to leave comments, you need to log in
Boost.Program_options. Repetition of group (section) names is allowed.
Recently, for configs, it’s more difficult than key: value using json. The JsonCpp library has a very convenient syntax: pastebin.com/w6AWWadr For key:value configs, I use a bike with this interface: pastebin.com/jfnFmEJ1
conf.h from the OpenSSL library.
WinAPI functions from the GetPrivateProfileSection() family.
While reading about boost::program_options
, I found a link to such a Config4 * . Although this is not the format that I described, the list of features is extensive.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question