Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitk::Forms::QuestionFactory Class Reference

#include <mitkQuestionFactory.h>

Inheritance diagram for mitk::Forms::QuestionFactory:
Collaboration diagram for mitk::Forms::QuestionFactory:

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...
 
QuestionCreate (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 IQuestionFactoryGetInstance ()
 Obtain a pointer to the single instance of this service. More...
 

Detailed Description

Definition at line 24 of file mitkQuestionFactory.h.

Constructor & Destructor Documentation

◆ QuestionFactory()

mitk::Forms::QuestionFactory::QuestionFactory ( )

◆ ~QuestionFactory()

mitk::Forms::QuestionFactory::~QuestionFactory ( )
override

Member Function Documentation

◆ Create()

Question* mitk::Forms::QuestionFactory::Create ( const std::string &  type) const
overridevirtual

Create an instance of a Question subclass based on its type string.

See also
Question::GetType(), Question::CreateAnother()

Implements mitk::Forms::IQuestionFactory.

◆ Register()

void mitk::Forms::QuestionFactory::Register ( Question question)
overridevirtual

Register a Question subclass for the instance creation based on its type string.

The service takes over ownership of the passed Question pointer.

See also
Question::GetType()

Implements mitk::Forms::IQuestionFactory.


The documentation for this class was generated from the following file: