Looking for configuration library
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?
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
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, ....
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement