[sword-devel] Parser .conf files?

Troy A. Griffitts sword-devel@crosswire.org
Sat, 30 Mar 2002 14:59:54 -0700


Hey J.
	SWConfig is a utility to read/write an INI style file. e.g.

SWConfig myConfig("./myFile.conf");

if (atoi(myConfig["Preferences"]["ScreenWidth"].c_str()) > 640) {
	myConfig["Preferences"]["ScreenWidth"] = "640";
	myConfig.Save();
}


If you want to know where SWORD processes its .conf files, that would be
in SWMgr.



Jonathan Hughes wrote:
> 
> Hey Everyone,
> 
>         Does anyone know where in the sword source code is the code that is
> used to parse the .conf files to get information out of them? Thanks for
> the tip.
> 
> In Christ,
> Jonathan
> jhughes@crosswire.org
> 
>   ------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: This is a digitally signed message part