![]() |
VR-Forces 5.0.2 Developer's Guide
|
Common functionality for a checkpoint manager, Will not present any dialogs to the user via this class. Use the DtVrfCheckpointManager for that.

Classes | |
| struct | AvailableSnapshot |
Public Types | |
| typedef std::map< double, AvailableSnapshot > | AvailableSnapshots |
Static Public Member Functions | |
| static DtVrfCheckpointManager & | instance (makVrv::DtDe &de) |
| static void | init (makVrv::DtDe &) |
Public Attributes | |
| boost::signals2::signal< void(const AvailableSnapshots &, const AvailableSnapshots &)> | signal_snapshotsChanged |
| boost::signals2::signal< void()> | signal_snapshotsCleared |
| boost::signals2::signal< void(double)> | signal_savedScenarioCheckpoint |
| boost::signals2::signal< void(const std::set< double > &, const std::set< double > &)> | signal_saveStateChanged |
| boost::signals2::signal< void(const std::set< double > &)> | signal_savedCheckpointsCleared |
| boost::signals2::signal< void(const std::set< double > &)> | signal_savingCheckpoints |
| boost::signals2::signal< void(double, double)> | signal_baseScenarioSnapshotTimeChanged |
Protected Types | |
| typedef std::map< double, int > | BackendSnapshot |
| typedef std::map< std::string, BackendSnapshot > | SnapshotIdsByBackend |
Protected Slots | |
| virtual void | scenarioSnapshotsWidgetDestroyed () |
Protected Member Functions | |
| virtual DtDeleteCheckpointsDialog * | createDeleteCheckpointsDialog (QWidget *p, const Qt::WindowFlags &f) |
| virtual bool | scenarioExists (double simTime, DtFilename *foundFile=0) const |
| virtual void | slot_backendRemoved (const DtVrfBackendState &) |
| virtual void | removeBackend (const std::string &addr, bool sendMessage) |
| virtual void | mergeBackendSnapshots (const std::string &addr, const DtIfSnapshotsResponse::SnapshotStatus &) |
| virtual double | removeSnapshot (const std::string &addr, double snapshotTime) |
| virtual double | addSnapshot (const std::string &addr, const DtIfSnapshotsResponse::Snapshot &, const std::set< std::string > &otherBes, std::set< std::string > &stillUnavailable) |
| virtual void | processScenarioSnapshotSaved (DtSimMessage *) |
| virtual void | checkNeedsPeriodicSave (const std::set< double > &) |
| virtual void | updatePeriodicCheckpointFrequency (int periodicCheckpointFrequency) |
| virtual void | simulationSettingsChanged () |
| virtual DtScenarioSnapshotsWidget * | createScenarioSnapshotsWidget (QWidget *p, const Qt::WindowFlags &f) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| AvailableSnapshots | myAvailableSnapshots |
| makVrv::DtSignalConnectionManager | myConnections |
| SnapshotIdsByBackend | mySnapshotIdsByBackend |
| std::set< double > | myPeriodicSnapshots |
| std::set< double > | myScheduledToSave |
| std::set< double > | mySnapshotsThatCanBeRolledBackTo |
| double | myBaseSnapshotTime |
| std::map< std::string, bool > | myHasBaseSnapshot |
| int | myPeriodicCheckpointFrequency |
| DtScenarioSnapshotsWidget * | myScenarioSnapshotsWidget |
| typedef std::map<double, AvailableSnapshot> makVrf::DtVrfCheckpointManager::AvailableSnapshots |
|
protected |
|
protected |
| makVrf::DtVrfCheckpointManager::DtVrfCheckpointManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the messager.
|
static |
|
virtual |
Requests snapshots from specified back-end. Request will clear out current map (if DtSimSendToAll) and replace with new information.
|
virtual |
Enables/disables periodic snapshoting at the specified time interval and save window (in number of snapshots, 0 means all)
|
virtual |
Rolls back to given snapshot, or, if snapshot is -1, last snapshot. Returns true if snapshot exists.
|
virtual |
Returns true if there are any snapshots that can be rolled back to.
|
virtual |
Signals to clear out all snapshots.
Given a list of sim times to save as an on disk checkpoint, send a message to queue them up to be saved.
|
virtual |
Saves all snapshots for currently unsaved snapshot states.
Creates a snapshot at the current sim clock time and returns whether or not this scenario is saved on disk. If there is already a snapshot do not send snapshot again unless force is true.
|
virtual |
Makes this snapshot the new base snapshot.
|
virtual |
Returns the available snapshot (if exists) at sim time.
Returns true if has a base snapshot at sim time. If sim time is -1, looks for any base snapshot.
Returns true if there is a snapshot at the specified sim time.
Returns true if there is a non periodic snapshot at the given sim time.
Returns true if there is a periodic snapshot at the given sim time.
|
virtual |
Returns true if the snapshot at the sim time has been saved.
|
virtual |
Has an unasked unsaved snapshot at the given sim time.
|
virtual |
Returns true if there are items scheduled to save.
|
virtual |
Sets whether or not the given sim time has been asked to save.
|
inline |
|
inline |
|
inline |
|
virtual |
If saved, returns the scenario filename at the given checkpoint time.
Convert sim time to a time that can be snapshoted to.
|
virtual |
If there is a snapshot at the sim time of this scenario, set it as saved.
|
virtual |
Sends message to clear all snapshots from all back-ends.
|
virtual |
Returns the first loadable sim time (or -1 if no time available);.
|
inlinevirtual |
The time that will be shown as the "base" snapshot (the snapshot that when rewinding to beginning will set to)
|
virtual |
Goes through all checkpoints and updates their saved status. Any that have changed will be signalled out as added/removed from save.
|
inline |
|
virtual |
Displays a dialog that allows user to see scenario snapshots.
|
virtual |
Displays a dialog that allows user to delete checkpoints in current scenario directory.
|
protectedvirtualslot |
|
protectedvirtual |
|
protectedvirtual |
Returns true if there is a scenario (with the current scenario name) in the userData directory with the given scenario name.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Checks to see if any if the items in this list can be sent for a periodic save, and, if does, save them.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void(const AvailableSnapshots&, const AvailableSnapshots&)> makVrf::DtVrfCheckpointManager::signal_snapshotsChanged |
Signal sent when snapshots have changed. First parameter is those added, second is removed.
| boost::signals2::signal<void()> makVrf::DtVrfCheckpointManager::signal_snapshotsCleared |
| boost::signals2::signal<void (double)> makVrf::DtVrfCheckpointManager::signal_savedScenarioCheckpoint |
| boost::signals2::signal<void (const std::set<double>&, const std::set<double>&)> makVrf::DtVrfCheckpointManager::signal_saveStateChanged |
| boost::signals2::signal<void (const std::set<double>&)> makVrf::DtVrfCheckpointManager::signal_savedCheckpointsCleared |
Signal sent when snapshots to be saved are cleared for saving.
| boost::signals2::signal<void (const std::set<double>&)> makVrf::DtVrfCheckpointManager::signal_savingCheckpoints |
| boost::signals2::signal<void (double, double)> makVrf::DtVrfCheckpointManager::signal_baseScenarioSnapshotTimeChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |