Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkTextQuestion.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkTextQuestion_h
14 #define mitkTextQuestion_h
15 
16 #include <mitkQuestion.h>
17 
18 namespace mitk::Forms
19 {
21  {
22  public:
23  ~TextQuestion() override;
24 
25  std::vector<std::string> GetResponsesAsStrings() const override;
26  void ClearResponses() override;
27 
28  bool IsComplete() const override;
29 
30  std::string GetResponse() const;
31  void SetResponse(const std::string& response);
32 
33  private:
34  std::string m_Response;
35  };
36 }
37 
38 #endif
#define MITKFORMS_EXPORT
Abstract base class for all types of questions used in a Form.
Definition: mitkQuestion.h:32
void ClearResponses() override
Clear the/all response(s).
bool IsComplete() const override
Check if a question is considered to be answered completely.
void SetResponse(const std::string &response)
std::vector< std::string > GetResponsesAsStrings() const override
Return the question's response(s) as strings.
std::string GetResponse() const