refs #494 Value class CValueCachePacket is a packet of cache value changes with timestamps.

This commit is contained in:
Mathew Sutcliffe
2015-10-22 22:25:34 +01:00
parent a284de3acb
commit eb11b69c6d
6 changed files with 142 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ namespace BlackMisc
static QString stringify(double n, bool i18n) { return i18n ? QLocale().toString(n) : QString::number(n); }
//! Stringify QString
static QString stringify(QString str, bool /*i18n*/) { return str; }
//! Stringify pair
template <class A, class B> static QString stringify(const std::pair<A, B> &pair, bool i18n) { return stringify(pair.first, i18n) + ":" + stringify(pair.second, i18n); }
};
/*!