Book Shelf
Loading...
Searching...
No Matches
BookWriter Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BookWriter()

BookWriter::BookWriter ( const QString & fileName)

Construct a new BookWriter object.

Parameters
fileNameThe name of the file to write to.

Member Function Documentation

◆ write()

bool BookWriter::write ( const QList< Book * > bookList)

Write a list of books to the file.

Parameters
bookListThe list of books to write.
Returns
true If the write operation was successful.
false If the write operation failed.

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