|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <SnapshotManager.h>
Classes | |
| struct | SnapshotInfo |
| struct | ValidationResult |
Public Member Functions | |
| SnapshotManager () | |
| ~SnapshotManager () | |
| std::string | CreateSnapshot (const std::string &studyPath, const std::string &snapshotsDir) |
| ValidationResult | ValidateSnapshot (const std::string &snapshotPath) |
| bool | ImportSnapshot (const std::string &snapshotPath, const std::string &studiesDir, const std::string &newStudyName) |
| SnapshotInfo | GetSnapshotInfo (const std::string &snapshotPath) |
| bool | ConvertSnapshotFormat (const std::string &studyPath) |
Static Public Member Functions | |
| static std::string | GenerateSnapshotName (const std::string &studyName, int version) |
Definition at line 15 of file SnapshotManager.h.
| SnapshotManager::SnapshotManager | ( | ) |
Definition at line 43 of file SnapshotManager.cpp.
| SnapshotManager::~SnapshotManager | ( | ) |
Definition at line 46 of file SnapshotManager.cpp.
| bool SnapshotManager::ConvertSnapshotFormat | ( | const std::string & | studyPath | ) |
Convert PEBLOnlinePlatform snapshot format to launcher format Platform format has:
Definition at line 321 of file SnapshotManager.cpp.
| std::string SnapshotManager::CreateSnapshot | ( | const std::string & | studyPath, |
| const std::string & | snapshotsDir | ||
| ) |
Definition at line 49 of file SnapshotManager.cpp.
References GenerateSnapshotName(), and Study::LoadFromDirectory().
|
static |
Definition at line 166 of file SnapshotManager.cpp.
Referenced by CreateSnapshot().
| SnapshotManager::SnapshotInfo SnapshotManager::GetSnapshotInfo | ( | const std::string & | snapshotPath | ) |
Definition at line 185 of file SnapshotManager.cpp.
References SnapshotManager::SnapshotInfo::author, SnapshotManager::SnapshotInfo::chainCount, SnapshotManager::SnapshotInfo::createdDate, SnapshotManager::SnapshotInfo::description, Study::LoadFromDirectory(), SnapshotManager::SnapshotInfo::studyName, SnapshotManager::SnapshotInfo::testCount, and SnapshotManager::SnapshotInfo::version.
| bool SnapshotManager::ImportSnapshot | ( | const std::string & | snapshotPath, |
| const std::string & | studiesDir, | ||
| const std::string & | newStudyName | ||
| ) |
Definition at line 140 of file SnapshotManager.cpp.
| SnapshotManager::ValidationResult SnapshotManager::ValidateSnapshot | ( | const std::string & | snapshotPath | ) |
Definition at line 78 of file SnapshotManager.cpp.
References SnapshotManager::ValidationResult::errors, SnapshotManager::ValidationResult::isValid, Study::LoadFromDirectory(), and SnapshotManager::ValidationResult::warnings.