Boost logo

Boost Users :

From: Aljaz (aljaz.fajmut_at_[hidden])
Date: 2007-03-05 12:51:42


Also if you have lets say 30 program options, would that be stupid to write
all in command line?

It would be cool if I had GUI for user confguration, but its confusing if
user wants to edit serialized config file by himself.

"Robert Ramey" <ramey_at_[hidden]> wrote in message
news:eshgoi$630$1_at_sea.gmane.org...
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net