15 #ifndef BORNAGAIN_GUI_MODEL_MODEL_SESSIONXML_H
16 #define BORNAGAIN_GUI_MODEL_MODEL_SESSIONXML_H
19 #include <QXmlStreamWriter>
20 #include <heinz/Complex.h>
21 #include <heinz/Vectors3D.h>
23 class QXmlStreamReader;
30 constexpr
auto ItemMimeType =
"application/org.bornagainproject.xml.item.z";
31 constexpr
auto LinkMimeType =
"application/org.bornagainproject.fittinglink";
The service to collect messages from different senders.
Base class for a GUI data item.
void writeItemAndChildItems(QXmlStreamWriter *writer, const SessionItem *item)
void readItems(QXmlStreamReader *reader, SessionItem *parent, QString topTag="", MessageService *messageService=nullptr)
constexpr auto ParameterTag("Parameter")
constexpr auto ItemMimeType
void writeModel(QXmlStreamWriter *writer, SessionItem *modelRootItem)
constexpr auto ModelTypeAttribute("ModelType")
constexpr auto RealDataModelTag("RealDataModel")
QString readProperty(QXmlStreamReader *reader, SessionItem *item)
constexpr auto ItemTag("Item")
constexpr auto InstrumentModelTag("InstrumentModel")
constexpr auto JobModelTag("JobModel")
constexpr auto LinkMimeType