![]() |
VR-Forces Developer's Guide
|
Implements a database connection which will open a SQLite database to record any database events logged by VR-Forces.

Public Member Functions | |
| virtual | ~DtVrfSqliteDatabaseConnection () |
Public Member Functions inherited from DtVrfDatabaseConnection | |
| virtual | ~DtVrfDatabaseConnection () |
| virtual bool | initialize (const DtRwDatabaseLoggerConfig &config, DtVrfDatabaseLoggerInterface *dbLogger) |
| virtual void | run () |
Static Public Member Functions | |
| static DtVrfDatabaseConnection * | create () |
| static DtString | type () |
Protected Member Functions | |
| DtVrfSqliteDatabaseConnection () | |
| virtual bool | processConfiguration (const DtRwDatabaseLoggerConfig &config) |
| virtual bool | connect () |
| virtual bool | createDatabase () |
| virtual bool | createTableForEvent (const DtVrfDatabaseEvent &event) |
| virtual bool | insertOrIgnoreEntriesForEvents (const DtVrfDatabaseEventVector &events) |
| virtual bool | insertOrUpdateEntriesForEvents (const DtVrfDatabaseEventVector &events) |
| virtual bool | updateEntryForEvent (const DtVrfDatabaseEvent &event) |
Protected Member Functions inherited from DtVrfDatabaseConnection | |
| DtVrfDatabaseConnection () | |
| virtual bool | stop () |
Protected Attributes | |
| DtFilename | myFilename |
| sqlite3 * | myDb |
Protected Attributes inherited from DtVrfDatabaseConnection | |
| DtVrfDatabaseLoggerInterface * | myDatabaseLogger |
| double | myLogPeriod |
| std::vector< bool > | myCreatedTables |
| std::atomic< bool > | myTimeToStop |
| std::atomic< bool > | myStopped |
| LogToDatabaseTask * | myTask |
Private Member Functions | |
| DtVrfSqliteDatabaseConnection (const DtVrfSqliteDatabaseConnection &other) | |
| DtVrfSqliteDatabaseConnection & | operator= (const DtVrfSqliteDatabaseConnection &other) |
|
virtual |
Destructor.
|
protected |
Constructor.
|
private |
Copy Constructor not implemented – Do Not copy.
|
inlinestatic |
Creator function for this class. Should not generally be called directly. Database Connection should be crated by the DtVrfDatabaseLoggerCreator.
|
inlinestatic |
Type of this connection.
|
protectedvirtual |
Processes the configuration for this connection.
Reimplemented from DtVrfDatabaseConnection.
|
inlineprotectedvirtual |
There is no server connection for SQLite.
Implements DtVrfDatabaseConnection.
|
protectedvirtual |
Creates the database.
Implements DtVrfDatabaseConnection.
|
protectedvirtual |
Creates a table a database table, if necessary.
Implements DtVrfDatabaseConnection.
|
protectedvirtual |
Logs the given events to the database, ignoring duplicates. NOTE: All events in the list must be of the same event type!
Implements DtVrfDatabaseConnection.
|
protectedvirtual |
Logs the given events to the database, updating duplicates. NOTE: All events in the list must be of the same event type!
Implements DtVrfDatabaseConnection.
|
protectedvirtual |
Updates the given event in the database.
Implements DtVrfDatabaseConnection.
|
private |
Assignment Operator not implemented – Do Not copy.
|
protected |
|
protected |