* Returns the pointer to the string option, * or throws an exception if it's not a string. * @return Pointer to the option. */
| 263 | * @return Pointer to the option. |
| 264 | */ |
| 265 | std::string *OptionInfo::asString() const |
| 266 | { |
| 267 | if (_type != OPTION_STRING) |
| 268 | { |
| 269 | throw Exception(_id + " is not a string!"); |
| 270 | } |
| 271 | return _ref.s; |
| 272 | } |
| 273 | |
| 274 | } |