CinemaScope
A cross-platform viewer for Cinema databases
|
Reads a Cinema database from disk into an in-memory database. More...
#include <CinDBReader.h>
Public Types | |
enum | Results { DatabaseLoaded =1, DatabaseInvalid, DatabaseLoadError } |
Static Public Member Functions | |
static int | VerifyDatabase (const QString &path) |
Static Public Attributes | |
static const QString | NOFILE = "CDBReaderNOFILE" |
Reads a Cinema database from disk into an in-memory database.
This class reads a cinema database from disk and places the data in a QSqlDatabase. Possible operations on the database include filtering (via data stored in a file within the cinema database).
Filtering is accomplished by reading all data from disk into an initial table, then copying the filtered data into a final table. The name of the final table is provided to this object (see public functions.
The class could read data into many types of in-memory databases, as it does not own the implementation of the in-memory database. Instead, the database is handed to this class during the read operation.