开发者

Conf file parser

I thought there was a boost library that allowed 开发者_高级运维me to parse unix conf files?

I believe it also had other features, i.e. it could parse windows ini files and I think XML based config files might have been done or was on the way too.

Any idea what that's called? I'm looking through the program options library and it doesn't look like the library documentation that I was looking to use just a couple of weeks ago.

EDIT: Ok, I think it's might have been the program options library, but I think I might have been looking at other documentation examples... maybe the tutorials.

Can someone point me in the direction of a complete tutorial to read a conf file?

EDIT: Found it. The Boost Property Tree library that I was looking for!


Boost allows you to parse several configuration file formats; this facility is part of Boost.ProgramOptions.


All the answers on this page are good.

The specific library in boost I was after is called the Property Tree. However, I will point out that his is a relatively new feature and only available since the last one or two revisions. My default boost installation in Kubuntu 10.04.1 doesn't have it, so I had to download the boost library and build it myself.


You're maybe looking for Spirit

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜