Boost logo

Boost Users :

Subject: [Boost-users] [Program_options] sections in config files
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2011-07-11 08:34:29


Hi:
I'm new to using the program_options library. I have a requirement to use an ini file style configuration file.
I have a file of the form:
[Section 1]
Key 1 =value1
Key2=value2
[section2]
Key1=value1
Key2=value2
What I'd like to be able to do is:
Firstly enumerate the sections assuming the form above.
Then secondly enumerate the keys and values in any section of my coosing.
Will program_options allow me to do this?
Cheers
Sean.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net