|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-04-21 15:56:58
> We read and write our config files a lot. Our systems perform the own
> optimisations and the latest settings our stored in a config file. The
> software reads in the current config file, modifies some values and
> writes out the entire config file again (currently they are XML based).
Use Serialization lib for this.
> But some values are also only human editable (not on the system setup
> display etc) so simple XML based files work well because they can easily
> be read/written by a person and the software itself.
There many ways to deal with it. For example you could keep these fields as
strings in memory or use separate storage for them or teach
boost::serialization to save/load them.
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk