Encapsulate the JSON code in a namespace to avoid issues with JSON classes used in opm-parser

This commit is contained in:
Magne Sjaastad
2016-06-06 10:43:36 +02:00
parent 4fd8e2503c
commit 7742fbe325
5 changed files with 12 additions and 4 deletions

View File

@@ -36,6 +36,9 @@
class QScriptEngine;
// Encapsulate the JSON code in a namespace to avoid issues with JSON classes used in opm-parser
namespace ResInsightInternalJson {
class JsonReader
{
public:
@@ -58,3 +61,6 @@ private:
QMap<QString, QVariant> decodeInner(QScriptValue object);
QList<QVariant> decodeInnerToList(QScriptValue arrayValue);
};
} // end ResInsightInternalJson