The base class for database loggers. A database logger is responsible for logging database events internally. A database connection (DtVrfDatabaseConnection) then reads these internal events and records them to its connected database.
All event logging should be done by calling the logEvent() funtions. The database connection will read event by calling popEvent().
Please see the class DtVrfDatabaseLogger for the standard VR-Forces implementation of database logging. If not configured, the database logger instantiated will be the DtNullDatabaseLogger, which does nothing. The database logger used can be configured in appData/settings/databaseConfig.mtl.
|
| virtual | ~DtVrfDatabaseLoggerInterface () |
| |
| virtual void | initialize (const DtRwDatabaseLoggerConfig &config, const DtSimulationAddress &simAddress, std::unique_ptr< DtVrfDatabaseConnection > conn) |
| |
| virtual bool | isEnabled () const =0 |
| |
| virtual bool | isEventEnabled (DtVrfDatabaseEvent::EventType eventType) const =0 |
| |
| virtual bool | logEvent (DtVrfDatabaseEvent::EventType eventType, std::function< DtVrfDatabaseEvent()> f)=0 |
| |
virtual std::unique_ptr
< DtVrfDatabaseEvent > | popEvent ()=0 |
| |
| virtual void | setScenarioLoadInformation (int runId, const DtFilename &scenarioName, DtTime simTime) |
| |
| virtual void | setScenarioRunInformation (const DtFilename &scenarioName, DtTime simTime, DtTime dateAndTimeOfDay, DtTime realWorldTime) |
| |
| virtual void | setSimTime (double simTime) |
| |
| virtual unsigned | queueSize () |
| |
| virtual void | forceDatabaseUpdate () |
| |
| virtual double | resourceThresholdPercentage () const |
| |
| virtual void | setResourceThresholdPercentage (double p) |
| |
|
| virtual bool | logEvent (DtVrfDatabaseEvent::EventType eventType, const DtVrfDatabaseEvent &event)=0 |
| |
| virtual bool | logEvent (DtVrfDatabaseEvent::EventType eventType, DtVrfDatabaseEvent &&event)=0 |
| |
|
| const DtVrfDatabaseConnection * | databaseConnection () const |
| |
| DtVrfDatabaseConnection * | databaseConnection () |
| |