|
Boost Users : |
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2008-04-02 14:02:28
Hello *!
I would like to know if there is any interest to support hierarchical
configuraitons in boost program options library.
The idea is mainly:
[Level1]
Option1
Option2
Option3
[[Level2]]
Option1
Option2
Option3
Access rules would be:
Level1.Option1
or
Level1.Level2.Option1
Sometimes it is very useful to introduce an additional level instead of
putting a prefix to each option. On the other hand it might be beneficial
during access.
PSEUDOCODE:
option_group g = parsed_options["Level1.Level2"].as<option_group>();
do_smth(g["Option1"]);
With Kind Regards,
Ovanes Markarian
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