| 95 | }; |
| 96 | |
| 97 | common_config_file_iterator::common_config_file_iterator( |
| 98 | const std::set<std::string>& allowed_options, bool allow_unregistered) |
| 99 | : allowed_options(allowed_options) |
| 100 | , m_allow_unregistered(allow_unregistered) |
| 101 | { |
| 102 | for (std::set<std::string>::const_iterator i = allowed_options.begin(); i != allowed_options.end(); ++i) |
| 103 | { |
| 104 | add_option(i->c_str()); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | void common_config_file_iterator::add_option(const char* name) |
| 109 | { |