Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <mitkQuestionFactory.h>
Public Member Functions | |
QuestionFactory () | |
~QuestionFactory () override | |
void | Register (Question *question) override |
Register a Question subclass for the instance creation based on its type string. More... | |
Question * | Create (const std::string &type) const override |
Create an instance of a Question subclass based on its type string. More... | |
Public Member Functions inherited from mitk::Forms::IQuestionFactory | |
virtual | ~IQuestionFactory () |
Additional Inherited Members | |
Static Public Member Functions inherited from mitk::Forms::IQuestionFactory | |
static IQuestionFactory * | GetInstance () |
Obtain a pointer to the single instance of this service. More... | |
Definition at line 24 of file mitkQuestionFactory.h.
mitk::Forms::QuestionFactory::QuestionFactory | ( | ) |
|
override |
|
overridevirtual |
Create an instance of a Question subclass based on its type string.
Implements mitk::Forms::IQuestionFactory.
|
overridevirtual |
Register a Question subclass for the instance creation based on its type string.
The service takes over ownership of the passed Question pointer.
Implements mitk::Forms::IQuestionFactory.