COPASI API
4.40.278
|
#include <CProvenanceXMLWriter.h>
Public Member Functions | |
void | combineVersionProvenance (QString ParentVersionName, QString VersionName) |
CProvenanceXMLWriter (QWidget *parent=0, CUndoStack *undoStack=NULL, QString PathFile="", QString ProvenanceOrigionFiletype="", QString ProvenanceOrigionTime="", QList< QString > VersionsPathToCurrentModel=QList< QString >()) | |
void | deleteParentofCurrentVersionProvenance (QString VersionName) |
void | deleteVersionProvenance (QString VersionName) |
void | updateCurrentSessionProvenance () |
void | updateMainBodyProvenace () |
void | updateOrigionOfProvenance (QString OrigionalFile) |
void | updateVersionProvenanceXMLFile (QString VersionName) |
~CProvenanceXMLWriter () | |
Private Member Functions | |
void | mergeProvenanceFiles (QString SourceFile1, QString SourceFile2, QString TargetFile) |
QHash< QString, QString > | reconstructProvenanceEntityNameMap () |
Private Attributes | |
QString | mPathFile |
QMap< QString, QString > | mProvenanceAuthorNameMap |
QString | mProvenanceOrigionFileType |
QString | mProvenanceOrigionTime |
int | mProvenanceTotalActionNumber |
int | mProvenanceTotalAgentNumber |
int | mProvenanceTotalEntityNumber |
CUndoStack * | mpUndoStack |
QList< QString > | mVersionsPathToCurrentModel |
|
explicit |
References mPathFile.
CProvenanceXMLWriter::~CProvenanceXMLWriter | ( | ) |
void CProvenanceXMLWriter::combineVersionProvenance | ( | QString | ParentVersionName, |
QString | VersionName | ||
) |
Add the Provenance of Parent Version to the Version Provenance
References mergeProvenanceFiles(), and mPathFile.
void CProvenanceXMLWriter::deleteParentofCurrentVersionProvenance | ( | QString | VersionName | ) |
If the Parent of Current Version deleted, Update the Current Verison main body provenance
References mergeProvenanceFiles(), and mPathFile.
void CProvenanceXMLWriter::deleteVersionProvenance | ( | QString | VersionName | ) |
Delete Provenance of a deleted version
References mPathFile.
|
private |
Merge two provenance files into a target file. Source file1 is older provenance in saving time thand Source file 2
References mPathFile.
Referenced by combineVersionProvenance(), deleteParentofCurrentVersionProvenance(), and updateMainBodyProvenace().
|
private |
Map of all entities and their ID
References mPathFile, mProvenanceAuthorNameMap, mProvenanceTotalActionNumber, mProvenanceTotalAgentNumber, mProvenanceTotalEntityNumber, and mVersionsPathToCurrentModel.
Referenced by updateCurrentSessionProvenance().
void CProvenanceXMLWriter::updateCurrentSessionProvenance | ( | ) |
Update Current Session Provenance on saving occasion
References CRootContainer::getConfiguration(), CCopasiParameterGroup::getParameter(), CCopasiParameter::getValue(), mPathFile, mProvenanceAuthorNameMap, mProvenanceTotalActionNumber, mProvenanceTotalAgentNumber, mProvenanceTotalEntityNumber, mpUndoStack, reconstructProvenanceEntityNameMap(), and CUndoStack::size().
Referenced by updateVersionProvenanceXMLFile().
void CProvenanceXMLWriter::updateMainBodyProvenace | ( | ) |
Update Main Body Provenance when session ends
References mergeProvenanceFiles(), and mPathFile.
Referenced by updateVersionProvenanceXMLFile().
void CProvenanceXMLWriter::updateOrigionOfProvenance | ( | QString | OrigionalFile | ) |
Update Origion of file: Create/Open/Import
References CRootContainer::getConfiguration(), CCopasiParameterGroup::getParameter(), CCopasiParameter::getValue(), mPathFile, mProvenanceOrigionFileType, and mProvenanceOrigionTime.
void CProvenanceXMLWriter::updateVersionProvenanceXMLFile | ( | QString | VersionName | ) |
Update Provenance and store it as the newly created Version Provenance
References mPathFile, updateCurrentSessionProvenance(), and updateMainBodyProvenace().
|
private |
Path to the versioning data file
Referenced by combineVersionProvenance(), CProvenanceXMLWriter(), deleteParentofCurrentVersionProvenance(), deleteVersionProvenance(), mergeProvenanceFiles(), reconstructProvenanceEntityNameMap(), updateCurrentSessionProvenance(), updateMainBodyProvenace(), updateOrigionOfProvenance(), and updateVersionProvenanceXMLFile().
|
private |
The last Provenance parent of current model version File save and ending a session will take care of by COMBINE Archive The parent of current model version Last Created/Restored Version A map between Author provenance ID and their names Name = 'Givenanem + FamilyName'
Referenced by reconstructProvenanceEntityNameMap(), and updateCurrentSessionProvenance().
|
private |
Provenance Orgional file type : Create/Open/Import
Referenced by updateOrigionOfProvenance().
|
private |
Time of Create/Open/Import action (first action)
Referenced by updateOrigionOfProvenance().
|
private |
Referenced by reconstructProvenanceEntityNameMap(), and updateCurrentSessionProvenance().
|
private |
Referenced by reconstructProvenanceEntityNameMap(), and updateCurrentSessionProvenance().
|
private |
Referenced by reconstructProvenanceEntityNameMap(), and updateCurrentSessionProvenance().
|
private |
A point to Undo Stack
Referenced by updateCurrentSessionProvenance().
|
private |
A list of Versions from the root to the Parent of Current Model
Referenced by reconstructProvenanceEntityNameMap().