| 206 | std::string Executable::GetActiveOptionsName() const { return this->active_options; } |
| 207 | |
| 208 | bool Executable::SetActiveOptions(const std::string& label) { |
| 209 | for (std::size_t i = 0, n = this->options_list.size(); i < n; ++i) { |
| 210 | if (this->options_list[i].label == label) { |
| 211 | this->active_options = label; |
| 212 | return true; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | this->active_options.clear(); |
| 217 | return false; |
| 218 | } |
| 219 | |
| 220 | ExecutableOptions* Executable::GetActiveOptions() { |
| 221 | const int option_index = this->GetActiveOptionsIndex(); |
no outgoing calls