|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-04-22 00:37:22
"Marcin Kalicinski" <kalita_at_[hidden]> wrote in message
news:e2bkmh$ldu$1_at_sea.gmane.org...
>>> I think you are correct here. This really sounds like it could've
>>> (should've?) been implemented using the serialization library and
>>> maybe BGL or a generic tree structure (which I would love to be a
>>> Boost library).
>>>
>>> That way you get all of the traversal mechanisms available to the tree
>>> (or graph) structure, and all of the archiving techniques available to
>>> the serialization lib.
>>
>> Exactly my point.
>>
>> Gennadiy
>
> You are correct it might (possibly) have been implemented this way.
> However, I'm quite sure you would need 30 lines of code, not 3 to get a
> value from a simple config file. And people would prefer to use MSXML or
> Expat instead anyway.
Why?
Here is my 3 lines:
StringTree t;
SimpleXMLArcive( a.xml ) >> t;
get( "a.b.c.d", t );
Gennadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk