5#ifndef SNAPSHOTMANAGER_H
6#define SNAPSHOTMANAGER_H
23 const std::string& snapshotsDir);
35 const std::string& studiesDir,
36 const std::string& newStudyName);
57 bool CopyDirectory(
const std::string& source,
const std::string& dest,
bool excludeData);
58 bool CopyFileContents(
const std::string& source,
const std::string& dest);
59 bool DirectoryExists(
const std::string& path)
const;
60 bool FileExists(
const std::string& path)
const;
61 std::string GetCurrentDateString()
const;
62 bool ShouldExcludeFromSnapshot(
const std::string& name,
bool isDirectory)
const;
SnapshotInfo GetSnapshotInfo(const std::string &snapshotPath)
std::string CreateSnapshot(const std::string &studyPath, const std::string &snapshotsDir)
static std::string GenerateSnapshotName(const std::string &studyName, int version)
bool ConvertSnapshotFormat(const std::string &studyPath)
bool ImportSnapshot(const std::string &snapshotPath, const std::string &studiesDir, const std::string &newStudyName)
ValidationResult ValidateSnapshot(const std::string &snapshotPath)
std::vector< std::string > errors
std::vector< std::string > warnings