| 55 | } |
| 56 | |
| 57 | void QuestionWithOtherOption::SetOtherResponse(const std::string& response) |
| 58 | { |
| 59 | if (!m_HasOtherOption) |
| 60 | mitkThrow() << "Setting \"Other\" response is disallowed!"; |
| 61 | |
| 62 | QuestionWithOptions::ClearResponses(); |
| 63 | m_OtherResponse = response; |
| 64 | } |
| 65 | |
| 66 | std::vector<std::string> QuestionWithOtherOption::GetResponsesAsStrings() const |
| 67 | { |
no outgoing calls
no test coverage detected