Re: [GD-General] A portable preferences library
Brought to you by:
vexxed72
From: J C L. <cl...@ka...> - 2003-12-02 16:43:01
|
On Tue, 2 Dec 2003 01:59:30 -0500 Brian Hook <ho...@py...> wrote: > Everyone seems like they have to write their own portable > preferences/registry wrapper. I've got one that I hacked up, and I'm > currently in the process of refactoring it and will make it open > source. I did a little STL-based thang which reads and writes a map of "<StanzaName>:Token" -> <value> to and from a text file where the value is a multi-value which transparently handles strings, floating point, integers etc in the same type. Very nice, simple, and easy to use. Load populates the map and everything else is an STL map reference. -- J C Lawrence ---------(*) Satan, oscillate my metallic sonatas. cl...@ka... He lived as a devil, eh? http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live. |