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

@@ -20,6 +20,13 @@ namespace BlackMisc
return BlackMisc::stringToBool(dbBool);
}
const QString &CDatastoreUtility::boolToDbYN(bool v)
{
static const QString y("Y");
static const QString n("N");
return v ? y : n;
}
int CDatastoreUtility::extractIntegerKey(const QString &stringWithKey)
{
QString ks(stringWithKey.trimmed());