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

The StandardRegistration class represents a standard registration for an event. More...

#include <standardregistration.h>

Inheritance diagram for StandardRegistration:
Registration

Public Member Functions

 StandardRegistration (const Person &attendee, const QDate &bookingDate=QDate::currentDate())
 Constructs a StandardRegistration object with the given attendee and booking date.
 
virtual ~StandardRegistration () override=default
 Destroys the StandardRegistration object.
 
virtual double calculateFee () const override
 Calculates the fee for the standard registration.
 
virtual QString toString () const override
 Returns a string representation of the StandardRegistration object.
 
- 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 StandardRegistration class represents a standard registration for an event.

This class inherits from the Registration class and provides additional functionality specific to standard registrations.

Constructor & Destructor Documentation

◆ StandardRegistration()

StandardRegistration::StandardRegistration ( const Person & attendee,
const QDate & bookingDate = QDate::currentDate() )

Constructs a StandardRegistration object with the given attendee and booking date.

Parameters
attendeeThe person attending the event.
bookingDateThe date of the booking. Defaults to the current date.

Member Function Documentation

◆ calculateFee()

double StandardRegistration::calculateFee ( ) const
overridevirtual

Calculates the fee for the standard registration.

Returns
The fee for the standard registration.

Implements Registration.

◆ toString()

QString StandardRegistration::toString ( ) const
overridevirtual

Returns a string representation of the StandardRegistration object.

Returns
A string representation of the StandardRegistration object.

Reimplemented from Registration.


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