Maintain a database of CompactDiscs. More...
Publicly inherits QObject.
Database | ( ); | |
CompactDisc* | search | ( const CompactDiscID& id ); |
void | update | ( CompactDisc& cd ); |
QString | getToEOL | ( FILE* fp ); |
QString | getToken | ( FILE* fp ); |
CompactDisc* | nextEntry | ( FILE* fptr ); |
void | writeEntry | ( FILE* fptr, CompactDisc& cd ); |
Maintain a database of CompactDiscs.
Maintain a collection of CompactDiscs that can be searched and updated by their CompactDiscIDs. The Database is stored in a file, and it is not loaded into memory (except for updating).Create the Database from the path to the data file.
"There can be only one."
Search for a CompactDisc by CompactDiscID.
If the disc is not found in the database file, then a default CompactDisc will be created and returned.
Add/update the CompactDisc to the Database.
Write the CompactDisc to the database file. The entire database is read in. Then, all entries are rewritten, with the new entry for the given disc replacing any existing entry for it.
Read the next CompactDisc entry from the Database file.
Write a CompactDisc entry to the Database file.