Boost logo

Boost Users :

From: Paul Giaccone (paulg_at_[hidden])
Date: 2006-01-19 04:39:59


Daniel Weiss wrote:

>Hi
>
>Is there any possibility to posteriorily change the values stored in the
>options map read from the config file? I.e.:
>
>I have assigned the following option:
>( "AutomZoneDetect", po::value<std::string>() ->default_value( "off" ), "To
>detect zones automatically" );
>
>Now I would like to e.g. set this option to "on" at some point in my code...
>
>
>Greets, Dan!
>
>
Just store it in a string variable so you can set it later.

std::string my_option;

( "AutomZoneDetect", po::value<std::string>(&my_option) ->default_value( "off" ), "To
detect zones automatically" );

my_option = "on";


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