Looking for configuration library

Started by
2 comments, last by kubuntu 18 years, 6 months ago
I need to quickly build a c (or c++) application, and I wouldn't like to make my own methods for reading .ini files (or similar). Rather I'd like to use some ready library (like Nini for .net languages). Despite searching a lot, I haven't stumbled upon anything useful. Is there anything available?
Advertisement
Hmm, I don't know of anything like that, but it does seem like a useful idea. I have traditionally used TinyXML for that in the past.
Writing one shouldn't be too hard:

http://www.boost.org/libs/tokenizer/index.html

http://www.boost.org/libs/spirit/index.html

The first seems like a more sensible choice if all you do is key = value.The latter might be beneficial for the future in case a more complex grammar is desired.


// ville
if this prog is only for windows, you could use this functions GetPrivateProfileString, GetPrivateProfileStruct, GetPrivateProfileInt, ....
0x2a.at - The $Life, the $Universe and $Everything

This topic is closed to new replies.

Advertisement