retrieving section names from a boost::proper_tree

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? Any herlp appreciated. Regards Sean.

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
participants (2)
-
Sean Farrow
-
Sebastian Redl