A while back, I noted that there was an INI file parser as part of boost. It was obscure, but I think it was in the program_options library. I note references to program_options searching the web site, but I'm not finding anything in the latest builds. I'm specifically interested in parsing INI files (I'm on a Macintosh) but the program_options library also seemed interesting. Is there anything available? What's the status of the program_options library? Thanks for any pointers, ...Duane
Duane Murphy wrote:
A while back, I noted that there was an INI file parser as part of boost. It was obscure, but I think it was in the program_options library. I note references to program_options searching the web site, but I'm not finding anything in the latest builds.
I'm specifically interested in parsing INI files (I'm on a Macintosh) but the program_options library also seemed interesting.
Is there anything available? What's the status of the program_options library?
The library is in CVS now, and will be part of 1.32 release. It indeed has a parser for INI-line config files, and according to http://boost.sourceforge.net/regression-logs/cs-Darwin.html works just fine on Mac. The documentation can be found at: http://www.boost.org/regression-logs/cs-win32_metacomm/doc/html/program_opti... If you decide that you'd want to use it, you can checkout the CVS version, or wait for the next release, though I'm not exactly sure when it will happen. Should you have any question, please ask. - Volodya
On Thu, Jun 17, 2004 at 09:58:24AM +0400, Vladimir Prus wrote:
Duane Murphy wrote:
Is there anything available? What's the status of the program_options library?
The library is in CVS now, and will be part of 1.32 release. It indeed has a parser for INI-line config files, and according to
Exxcellent! This is one library I'd really hoped to see part of Boost proper since I discovered it. It is a very nice bit of work. -- Caleb Epstein | bklyn . org | Reality is bad enough, why should I tell cae at | Brooklyn Dust | the truth? bklyn dot org | Bunny Mfg. | -- Patrick Sky
Geoffrey Simms wrote:
Is there anything available? What's the status of the program_options library?
The library is in CVS now, and will be part of 1.32 release. It indeed has a parser for INI-line config files, and according to
I'm wondering why this isn't handled by a boost::spirit parser?
There are several issues: 1. The parsing can be done by spirit, but program_options provide a high-level interface for describing options. 2. I did not use spirit for program_options because it's too large dependency for quite a simple task. Further, I had to learn how to use spirit. And for another reason, current version of Spirit fails almost all tests on borland, while program_options works perfectly on that compiler. Of course, nothing prevents you from writing your own INI parser with spirit, but do you need to? - Volodya
participants (4)
-
Caleb Epstein
-
Duane Murphy
-
Geoffrey Simms
-
Vladimir Prus