From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-24 02:20:22
Marcin Kalicinski wrote:
>>> 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.
> 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.
Counting lines is a risky business in any language that has functions:
std::string get_value_from_xml_file(const std::string& file,
const std::string& name)
// 10K lines of assembler
makes acessing value from xml file a one-liner.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk