program options config file format?
Hi About a week ago Mathias Kaepler posted the following question:
Hi,
the program_options reference talks about being able to parse config files, but doesn't mention a thing about its layout. No examples are shown how a file has to look like to be parsable by program_options.
Any ideas? Besides the layout, which characters are treated as comments? .
-- Matthias Kaeppler
I have exactly the same question but have not been able to find the response that was given to Mathias. Would someone share it with me? thanks, Glen Stark
stark wrote:
Matthias Kaeppler
I have exactly the same question but have not been able to find the response that was given to Mathias. Would someone share it with me? thanks,
Glen Stark
Brian Lawry answered:
Example layout: ..\libs\program_options\example\multiple_sources.cfg (used by multiple_sources.cpp in same directory).
Any ideas? Besides the layout, which characters are treated as comments?
Anyone? Matthias Kaeppler
The only character I've found that indicates a comment is the '#' (pound/hash/sharp).
One other thing I've noticed is that the option names are case-sensitive, at least by default.
HTH.
Brian Lawry Mfg Software Engineer Compressor Controls Corp blawry@cccglobal.com
Matt
participants (2)
-
Matthew Vogt
-
stark