
5 Mar
2007
5 Mar
'07
4:33 p.m.
Hmmm - I'm wondering why you wouldn't use the seriailzation libary for this. Here is the scenario: take a program which uses program options. Add one more option e.g -i<file name> On startup, check for -i switch. If switch isn't used, process options and store them in a class intance. On program shutdown, save class instance toa file using serialization. If swith IS used, just load class instance from file using serialization. Seems to me that the two libraries complement each other in this case. Robert Ramey Aljaz wrote:
I wonder if there are any functions in boost program options libary to save them back to configuration file?
Maybe any example?
Thanks for help