BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Save history information for collection of items with non-XML data.
Definition at line 51 of file IOHistory.h.
Public Member Functions | |
DatafieldDirHistory ()=default | |
bool | contains (const SaveLoadInterface *item) |
void | markAsSaved (const SaveLoadInterface *item) |
QStringList | savedFileNames () const |
Returns list of file names used to save all items in a history. More... | |
bool | wasModifiedSinceLastSave (const SaveLoadInterface *item) |
Private Member Functions | |
DatafieldSaveInfo | itemInfo (const SaveLoadInterface *item) const |
Private Attributes | |
QVector< DatafieldSaveInfo > | m_history |
|
default |
bool DatafieldDirHistory::contains | ( | const SaveLoadInterface * | item | ) |
Definition at line 64 of file IOHistory.cpp.
References m_history.
Referenced by markAsSaved(), and wasModifiedSinceLastSave().
|
private |
Definition at line 85 of file IOHistory.cpp.
References Error, and m_history.
Referenced by wasModifiedSinceLastSave().
void DatafieldDirHistory::markAsSaved | ( | const SaveLoadInterface * | item | ) |
Definition at line 48 of file IOHistory.cpp.
References contains(), SaveLoadInterface::containsNonXMLData(), DatafieldSaveInfo::createSaved(), Error, and m_history.
Referenced by DatafieldIOService::loadDataFiles(), and DatafieldIOService::save().
QStringList DatafieldDirHistory::savedFileNames | ( | ) | const |
Returns list of file names used to save all items in a history.
Definition at line 75 of file IOHistory.cpp.
References m_history.
Referenced by DatafieldIOService::save().
bool DatafieldDirHistory::wasModifiedSinceLastSave | ( | const SaveLoadInterface * | item | ) |
Definition at line 58 of file IOHistory.cpp.
References contains(), itemInfo(), and DatafieldSaveInfo::wasModifiedSinceLastSave().
|
private |
Definition at line 66 of file IOHistory.h.
Referenced by contains(), itemInfo(), markAsSaved(), and savedFileNames().