Boost logo

Boost Users :

Subject: Re: [Boost-users] retrieving section names from a boost::proper_tree
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2012-02-09 07:05:30


On 09.02.2012 12:34, Sean Farrow wrote:
>
> Hi All:
>
> I have parsed a .ini file in to a boost::property_tree. I now would
> like to retrieve all the section names and place them in a vector.
>
> Am I needing the key_type or the value_type. I am suspecting the
> former! Also is there a quick way of outputting the section names
> without having to use a boost_foreach or similar loop construct?
>
>
The keys of the children of the root node are the section names.
Iterating over the children is the only way to retrieve them.

Sebastian



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