Re: [GD-General] A portable preferences library
Brought to you by:
vexxed72
From: J C L. <cl...@ka...> - 2003-12-02 17:41:36
|
On Tue, 2 Dec 2003 12:05:59 -0500 Brian Hook <ho...@py...> wrote: > On Tue, 02 Dec 2003 11:42:59 -0500, J C Lawrence wrote: >> 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. > Except it uses STL =3D) True, except that it would be easy enough to move to any of the associative array implementations. There's nothing marrying it to STL. > I'm using ANSI C since it is, by far, the most plug-and-play language > for cross-platform work. I also greatly prefer C, but that was not the political choice at that time. Were I do go the C route I'd likely end up with something very similar but based on *dbm and one of the varray implementations. -- 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. |