Book Shelf
|
The BookWriter class is responsible for serializing a list of books to an XML file. It uses the FileWriter class to handle the file writing. More...
#include <bookwriter.h>
Public Member Functions | |
BookWriter (const QString &fileName) | |
Construct a new BookWriter object. | |
bool | write (const QList< Book * > bookList) |
Write a list of books to the file. | |
The BookWriter class is responsible for serializing a list of books to an XML file. It uses the FileWriter class to handle the file writing.
BookWriter::BookWriter | ( | const QString & | fileName | ) |
Construct a new BookWriter object.
fileName | The name of the file to write to. |
bool BookWriter::write | ( | const QList< Book * > | bookList | ) |
Write a list of books to the file.
bookList | The list of books to write. |