Boost Users :
Subject: Re: [Boost-users] [PropertyTree] wasRE: [Program_options] sections in config files
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2011-07-11 09:05:39
Ok, I've just takan a look at property tree and it seems to do what I want, however if I use xml, and for example have an element such as:
How will propertytree handle the attribute on person, i.e the id member?
Secondly, How do I go about having a number of person entries-i.e persons. I was thinking of using a vector of propertyTrees, will this work?
Any help appreciated!
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Sebastian Redl
Sent: 11 July 2011 13:43
Subject: Re: [Boost-users] [Program_options] sections in config files
On 11.07.2011 14:34, Sean Farrow wrote:
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:
Key 1 =value1
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?
No, but PropertyTree will.
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