cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
C++ properties
C++ properties
Jul 30, 2010 at 1:41pm UTC
GnG
(40)
Hi all,
I have to do some text file with the properties of my software, is there some API for this!? Something that works like "key=value"?!
Thanks.
Jul 30, 2010 at 3:59pm UTC
Athar
(4466)
You can use Boost.Program_options:
http://www.boost.org/doc/libs/1_43_0/doc/html/program_options.html
But if you don't need anything fancy, you can easily do it yourself in less than five minutes.
Jul 30, 2010 at 4:24pm UTC
GnG
(40)
Hun, I'm looking for some examples of program_options, thanks man.
Jul 30, 2010 at 4:30pm UTC
Athar
(4466)
The page I posted is the documentation for the library... it includes a tutorial.
Jul 30, 2010 at 4:39pm UTC
GnG
(40)
I've installed the package and it comes with some examples, but I can't find anything about how to create an object from a config file, just object to file, do you have some example like this?
Jul 30, 2010 at 5:31pm UTC
GnG
(40)
Athar, finally i found an example, thanks, now it's just implement, resolved.
Topic archived. No new replies allowed.