* Returns the pointer to the boolean option, * or throws an exception if it's not a boolean. * @return Pointer to the option. */
| 221 | * @return Pointer to the option. |
| 222 | */ |
| 223 | bool *OptionInfo::asBool() const |
| 224 | { |
| 225 | if (_type != OPTION_BOOL) |
| 226 | { |
| 227 | throw Exception(_id + " is not a boolean!"); |
| 228 | } |
| 229 | return _ref.b; |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | * Returns the pointer to the integer option, |
no test coverage detected