BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
20 const std::string& restore_file)
21 : backup_file(backup_file), restore_file(restore_file) {
26 "No backup file name given. No backups will be made!");
30 "Backup file is identical to restore file. Will be overridden after "
47 if (wrapper !=
nullptr) {
48 return wrapper->
Get();
50 Log::Fatal(
"SimulationBackup",
"Failed to retrieve SimulationSteps.");
55 "Requested to restore data, but no restore file given.");
66 "completed_simulation_steps";
static const std::string kRuntimeVariableName
SimulationBackup(const std::string &backup_file, const std::string &restore_file)
bool GetPersistentObject(const char *root_file, const char *obj_name, T *&empty_obj)
Gets the persistent object from the specified ROOT file.
static void Warning(const std::string &location, const Args &... parts)
Prints warning message.
static void Info(const std::string &location, const Args &... parts)
Prints information message.
size_t GetSimulationStepsFromBackup() const
bool FileExists(const std::string &file_name)
bool BackupEnabled() const
static void Fatal(const std::string &location, const Args &... parts)
Prints fatal error message.
bool RestoreEnabled() const
static const std::string kSimulationStepName
static const std::string kSimulationName
static std::vector< std::function< void()> > after_restore_event_