The Registration class represents a registration for an event.
More...
#include <registration.h>
|
|
virtual | ~Registration ()=default |
| | Destructor.
|
| |
| Person | getAttendee () const |
| | Get the attendee associated with the registration.
|
| |
| QDate | getBookingDate () const |
| | Get the booking date of the registration.
|
| |
| virtual double | calculateFee () const =0 |
| | Calculate the fee for the registration.
|
| |
| virtual QString | toString () const |
| | Convert the registration information to a string representation.
|
| |
| void | setBookingDate (const QDate &newBookingDate) |
| | Set the booking date of the registration.
|
| |
|
|
static constexpr double | STANDARD_FEE = 100.00 |
| |
The Registration class represents a registration for an event.
This class is an abstract base class that provides common functionality for event registrations. It contains information about the attendee, booking date, and fee calculation.
◆ Registration()
| Registration::Registration |
( |
const Person & | attendee, |
|
|
const QDate & | bookingDate ) |
|
protected |
Constructor.
- Parameters
-
| attendee | The attendee associated with the registration. |
| bookingDate | The booking date of the registration. |
◆ calculateFee()
| virtual double Registration::calculateFee |
( |
| ) |
const |
|
pure virtual |
◆ getAttendee()
| Person Registration::getAttendee |
( |
| ) |
const |
Get the attendee associated with the registration.
- Returns
- The attendee.
◆ getBookingDate()
| QDate Registration::getBookingDate |
( |
| ) |
const |
Get the booking date of the registration.
- Returns
- The booking date.
◆ setBookingDate()
| void Registration::setBookingDate |
( |
const QDate & | newBookingDate | ) |
|
Set the booking date of the registration.
- Parameters
-
| newBookingDate | The new booking date. |
◆ toString()
| QString Registration::toString |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following files: