Conference Registration 2024.07.18.04
Loading...
Searching...
No Matches
RegistrationFactory Class Reference

The RegistrationFactory class is a singleton class that is responsible for creating Registration objects. More...

#include <registrationfactory.h>

Public Member Functions

RegistrationcreateRegistration (const QString &type, const QString &name, const QString &affiliation, const QString &email, const QDate &bookingDate, const QString &additionalInfo)
 Creates Registration objects based on the arguments provided.
 

Static Public Member Functions

static RegistrationFactorygetInstance ()
 getInstance
 

Detailed Description

The RegistrationFactory class is a singleton class that is responsible for creating Registration objects.

Member Function Documentation

◆ createRegistration()

Registration * RegistrationFactory::createRegistration ( const QString & type,
const QString & name,
const QString & affiliation,
const QString & email,
const QDate & bookingDate,
const QString & additionalInfo )

Creates Registration objects based on the arguments provided.

Parameters
typeThe type of registration to create.
nameThe name of the person registering.
affiliationThe affiliation of the person registering.
emailThe email of the person registering.
bookingDateThe date the person is registering for.
additionalInfoAdditional information about the person registering.
Returns
A pointer to the created Registration object.

◆ getInstance()

RegistrationFactory & RegistrationFactory::getInstance ( )
static

getInstance

Returns
The singleton instance of the RegistrationFactory class.

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