|
Boost : |
Subject: Re: [boost] Library for configuration file parsing
From: sguazt (marco.guazzone_at_[hidden])
Date: 2010-11-28 02:40:16
On Sun, Nov 28, 2010 at 7:38 AM, Robert Ramey <ramey_at_[hidden]> wrote:
> or you could save a lot of trouble and just use the serialization library.
>
Personally, I like to keep configuration file as user friendly as possible,
I don't know in detail the capabilities of the boost serialization
library, but, as I can see from the tutorial page, its output is not
so "friendly" (e.g., see
http://www.boost.org/doc/libs/1_45_0/libs/serialization/example/demofile.txt
and http://www.boost.org/doc/libs/1_45_0/libs/serialization/example/demo_save.xml).
Said that, while the proposed library looks promising, I would avoid
to call it "configurator" since it seems limited to parse INI files.
Configuration file can be done in very different format.
INI is just a choice, but not the only one.
For instance, in the past I used to write conf file in XML.
Now I'm quite happy with YAML (http://www.yaml.org), which IMHO
combines a good tradeoff between simpleness, compactness and power.
-- Marco
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk