C++ property file

H

Hongyu

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!
 
H

Hongyu

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.
 
J

Jonathan Turkanis

Hongyu said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top