| 35 | } |
| 36 | |
| 37 | KnobValue IKnobCollection::parseKnobValue(std::string const& knobName, std::string const& knobValue) const { |
| 38 | auto result = tryParseKnobValue(knobName, knobValue); |
| 39 | if (!result.present()) { |
| 40 | throw invalid_option(); |
| 41 | } |
| 42 | return result.get(); |
| 43 | } |
| 44 | |
| 45 | void IKnobCollection::setKnob(std::string const& knobName, KnobValueRef const& knobValue) { |
| 46 | if (!trySetKnob(knobName, knobValue)) { |