C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C++ property file

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Hongyu
Guest





PostPosted: Sat Jan 29, 2005 1:00 am    Post subject: C++ property file Reply with 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!

Back to top
Jonathan Turkanis
Guest





PostPosted: Sat Jan 29, 2005 2:46 am    Post subject: Re: C++ property file Reply with quote



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





PostPosted: Thu Feb 03, 2005 7:03 pm    Post subject: Re: C++ property file Reply with 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.

Back to top
Jonathan Turkanis
Guest





PostPosted: Fri Feb 04, 2005 2:36 am    Post subject: Re: C++ property file Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.