refs #581 Use JSON to store timestamps in data cache revision file.

This commit is contained in:
Mathew Sutcliffe
2016-02-02 18:03:32 +00:00
parent ef38c1620f
commit 97fad301ae
4 changed files with 120 additions and 21 deletions

View File

@@ -59,6 +59,9 @@ namespace BlackMisc
//! Discard timestamps and return as variant map.
CVariantMap toVariantMap() const;
//! Discard values and return as map of timestamps.
QMap<QString, qint64> toTimestampMap() const;
//! \copydoc CValueObject::registerMetadata`
static void registerMetadata();
@@ -207,7 +210,7 @@ namespace BlackMisc
//! Load from Json files in a given directory any values which differ from the current ones, and insert them in o_values.
//! \threadsafe
CStatusMessage loadFromFiles(const QString &directory, const CVariantMap &current, CValueCachePacket &o_values) const;
CStatusMessage loadFromFiles(const QString &directory, const QSet<QString> &keys, const CVariantMap &current, CValueCachePacket &o_values) const;
//! Mark all values with keys that start with the given prefix as having been saved.
//! \threadsafe