| 155 | |
| 156 | |
| 157 | std::vector<std::string> File::GetOptions(bool all_configured) |
| 158 | { |
| 159 | configure_mapping(); |
| 160 | |
| 161 | std::vector<std::string> opts; |
| 162 | for (const auto &e : map) |
| 163 | { |
| 164 | if (e.present || all_configured) |
| 165 | { |
| 166 | if ((OptionValueType::Present == e.type) |
| 167 | || (!e.value.empty()) || all_configured) |
| 168 | { |
| 169 | opts.push_back(e.option); |
| 170 | } |
| 171 | } |
| 172 | } |
| 173 | return opts; |
| 174 | } |
| 175 | |
| 176 | |
| 177 | bool File::IsPresent(const std::string &key) |