* Returns the pointer to the integer option, * or throws an exception if it's not a integer. * @return Pointer to the option. */
| 235 | * @return Pointer to the option. |
| 236 | */ |
| 237 | int *OptionInfo::asInt() const |
| 238 | { |
| 239 | if (_type != OPTION_INT) |
| 240 | { |
| 241 | throw Exception(_id + " is not an integer!"); |
| 242 | } |
| 243 | return _ref.i; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Returns the pointer to the key option, |
no test coverage detected