refs #561, Compressed JSON format for model

* based on RI DB keys
* utility functions
This commit is contained in:
Klaus Basan
2015-12-20 20:37:56 +01:00
parent e8afb78e90
commit 4e0e2cddf8
8 changed files with 98 additions and 5 deletions

View File

@@ -37,6 +37,9 @@ namespace BlackMisc
//! DB key as string
QString getDbKeyAsString() const;
//! Key as JSON value, or null
QJsonValue getDbKeyAsJsonValue() const;
//! Db ley in parentheses, e.g. "(3)"
QString getDbKeyAsStringInParentheses() const;
@@ -95,6 +98,9 @@ namespace BlackMisc
//! Get DB key.
const QString &getDbKey() const { return m_dbKey; }
//! Key as JSON value, or null
QJsonValue getDbKeyAsJsonValue() const;
//! Set the DB key
void setDbKey(const QString &key) { m_dbKey = key.trimmed().toUpper(); }