By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,898 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,898 IT Pros & Developers. It's quick & easy.

C++ property file

P: n/a
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!

Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hongyu wrote:
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
Jul 23 '05 #2

P: n/a
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.

Jul 23 '05 #3

P: n/a
Hongyu wrote:
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
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.