Conference Registration 2024.07.18.04
|
The GuestRegistration class represents a registration for a guest attendee. More...
#include <guestregistration.h>
Public Member Functions | |
GuestRegistration (const Person &attendee, const QDate &bookingDate=QDate::currentDate(), const QString &category="") | |
Constructs a GuestRegistration object with the given attendee, booking date, and category. | |
virtual | ~GuestRegistration () override=default |
Default destructor for the GuestRegistration class. | |
virtual double | calculateFee () const override |
Calculates the registration fee for the guest registration. | |
virtual QString | toString () const override |
Converts the guest registration details to a string format. | |
QString | getCategory () const |
Gets the category of the guest registration. | |
Public Member Functions inherited from Registration | |
virtual | ~Registration ()=default |
Destructor. | |
Person | getAttendee () const |
Get the attendee associated with the registration. | |
QDate | getBookingDate () const |
Get the booking date of the registration. | |
void | setBookingDate (const QDate &newBookingDate) |
Set the booking date of the registration. | |
Additional Inherited Members | |
Static Public Attributes inherited from Registration | |
static constexpr double | STANDARD_FEE = 100.00 |
Protected Member Functions inherited from Registration | |
Registration (const Person &attendee, const QDate &bookingDate) | |
Constructor. | |
The GuestRegistration class represents a registration for a guest attendee.
This class inherits from the Registration class and adds additional functionality specific to guest registrations. It provides methods to calculate the registration fee and convert the registration details to a string format.
GuestRegistration::GuestRegistration | ( | const Person & | attendee, |
const QDate & | bookingDate = QDate::currentDate(), | ||
const QString & | category = "" ) |
Constructs a GuestRegistration object with the given attendee, booking date, and category.
attendee | The person attending the event. |
bookingDate | The date of the booking. Defaults to the current date. |
category | The category of the guest registration. |
|
overridevirtual |
Calculates the registration fee for the guest registration.
Implements Registration.
QString GuestRegistration::getCategory | ( | ) | const |
Gets the category of the guest registration.
|
overridevirtual |
Converts the guest registration details to a string format.
Reimplemented from Registration.