CinemaScope
A cross-platform viewer for Cinema databases
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
CinDBReader Class Reference

Reads a Cinema database from disk into an in-memory database. More...

#include <CinDBReader.h>

Public Types

enum  Results { DatabaseLoaded =1, DatabaseInvalid, DatabaseLoadError }
 

Public Member Functions

int load (QSqlDatabase &db, const QString &path, const QString &tableName)
 
const QString & getDatabase ()
 
const QString & getCSVFile ()
 
const QString & getSettingsFile ()
 
bool hasCSVFile ()
 
bool hasSettingsFile ()
 

Static Public Member Functions

static int VerifyDatabase (const QString &path)
 

Static Public Attributes

static const QString NOFILE = "CDBReaderNOFILE"
 

Detailed Description

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.


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