19 Jan
2006
19 Jan
'06
9:39 a.m.
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::valuestd::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::valuestd::string(&my_option) ->default_value( "off" ), "To detect zones automatically" ); my_option = "on";