BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Default converter between TagInfo and json object. More...
Public Member Functions | |
TagInfo | from_json (const QJsonObject &object) override |
bool | isTagInfo (const QJsonObject &object) |
Returns true if given json object represents TagInfo object. More... | |
QJsonObject | to_json (const TagInfo &tag) override |
Static Public Attributes | |
static const QString | maxKey = "max" |
static const QString | minKey = "min" |
static const QString | modelsKey = "models" |
static const QString | nameKey = "name" |
Default converter between TagInfo and json object.
Definition at line 25 of file jsontaginfoconverter.h.
|
overridevirtual |
Implements ModelView::JsonTagInfoConverterInterface.
Definition at line 49 of file jsontaginfoconverter.cpp.
References isTagInfo(), maxKey, minKey, modelsKey, RealSpace::Particles::name(), and nameKey.
Referenced by TEST_F().
bool JsonTagInfoConverter::isTagInfo | ( | const QJsonObject & | object | ) |
Returns true if given json object represents TagInfo object.
Definition at line 66 of file jsontaginfoconverter.cpp.
References modelsKey.
Referenced by from_json(), and TEST_F().
|
overridevirtual |
Implements ModelView::JsonTagInfoConverterInterface.
Definition at line 35 of file jsontaginfoconverter.cpp.
References ModelView::TagInfo::max(), maxKey, ModelView::TagInfo::min(), minKey, modelsKey, ModelView::TagInfo::modelTypes(), ModelView::TagInfo::name(), and nameKey.
Referenced by TEST_F().
|
inlinestatic |
Definition at line 29 of file jsontaginfoconverter.h.
Referenced by from_json(), TEST_F(), and to_json().
|
inlinestatic |
Definition at line 28 of file jsontaginfoconverter.h.
Referenced by from_json(), TEST_F(), and to_json().
|
inlinestatic |
Definition at line 30 of file jsontaginfoconverter.h.
Referenced by from_json(), isTagInfo(), TEST_F(), and to_json().
|
inlinestatic |
Definition at line 27 of file jsontaginfoconverter.h.
Referenced by from_json(), TEST_F(), and to_json().