Book Shelf
|
The BookFactory class is a factory class for creating Book objects. More...
#include <bookfactory.h>
Public Member Functions | |
Book * | createBook (const QString &title, const QStringList &authors, const QString &isbn, const QDate &publicationDate) |
Create a Book object. | |
Static Public Member Functions | |
static BookFactory & | getInstance () |
Get the Instance object. | |
The BookFactory class is a factory class for creating Book objects.
Book * BookFactory::createBook | ( | const QString & | title, |
const QStringList & | authors, | ||
const QString & | isbn, | ||
const QDate & | publicationDate ) |
|
static |
Get the Instance object.
This is a singleton class, so this method is used to get the instance of the BookFactory.