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

The GuestRegistration class represents a registration for a guest attendee. More...

#include <guestregistration.h>

Inheritance diagram for GuestRegistration:
Registration

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.
 

Detailed Description

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.

See also
Registration

Constructor & Destructor Documentation

◆ GuestRegistration()

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.

Parameters
attendeeThe person attending the event.
bookingDateThe date of the booking. Defaults to the current date.
categoryThe category of the guest registration.

Member Function Documentation

◆ calculateFee()

double GuestRegistration::calculateFee ( ) const
overridevirtual

Calculates the registration fee for the guest registration.

Returns
The calculated registration fee.

Implements Registration.

◆ getCategory()

QString GuestRegistration::getCategory ( ) const

Gets the category of the guest registration.

Returns
The category of the guest registration.

◆ toString()

QString GuestRegistration::toString ( ) const
overridevirtual

Converts the guest registration details to a string format.

Returns
The guest registration details as a string.

Reimplemented from Registration.


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