| View previous topic :: View next topic |
| Author |
Message |
Hongyu Guest
|
Posted: Sat Jan 29, 2005 1:00 am Post subject: C++ property file |
|
|
I am wondering whether there is any C++ template class somewhere that
is able to read input parameters in a similar fasion like the property
files in Java.
Also, any class avaliable similar to the Getopt package in Perl?
Thanks!
|
|
| Back to top |
|
 |
Jonathan Turkanis Guest
|
Posted: Sat Jan 29, 2005 2:46 am Post subject: Re: C++ property file |
|
|
Hongyu wrote:
| Quote: | I am wondering whether there is any C++ template class somewhere that
is able to read input parameters in a similar fasion like the property
files in Java.
Also, any class avaliable similar to the Getopt package in Perl?
Thanks!
|
You might look at the new Boost Program Options library:
http://www.boost.org/doc/html/program_options.html
Jonathan
|
|
| Back to top |
|
 |
Hongyu Guest
|
Posted: Thu Feb 03, 2005 7:03 pm Post subject: Re: C++ property file |
|
|
Thanks, Jonathan. I do like those libaries from Boost.
On the other hand, sometimes I need to feed more than a couple of
parameters to my C++ program, which can be awkward just using command
options. My current solution is to use a XML file to wrap those
parameters.
|
|
| Back to top |
|
 |
Jonathan Turkanis Guest
|
Posted: Fri Feb 04, 2005 2:36 am Post subject: Re: C++ property file |
|
|
Hongyu wrote:
| Quote: | Thanks, Jonathan. I do like those libaries from Boost.
On the other hand, sometimes I need to feed more than a couple of
parameters to my C++ program, which can be awkward just using command
options. My current solution is to use a XML file to wrap those
parameters.
|
The program_options library also supports config files.
Jonathan
|
|
| Back to top |
|
 |
|