BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Namespaces | |
Tags | |
Functions | |
void | assertExpectedTag (QXmlStreamReader *reader, const QString &tag) |
void | gotoEndElementOfTag (QXmlStreamReader *reader, const QString &tag) |
constexpr auto | InstrumentModelTag ("InstrumentModel") |
constexpr auto | ItemTag ("Item") |
constexpr auto | JobModelTag ("JobModel") |
constexpr auto | ModelTypeAttribute ("ModelType") |
constexpr auto | ParameterTag ("Parameter") |
void | readAttribute (QXmlStreamReader *reader, const QString &attributeBaseName, complex_t *c) |
void | readAttribute (QXmlStreamReader *reader, const QString &attributeBaseName, R3 *vec) |
void | readAttribute (QXmlStreamReader *reader, const QString &attributeName, double *d) |
void | readAttribute (QXmlStreamReader *reader, const QString &attributeName, QColor *c) |
void | readAttribute (QXmlStreamReader *reader, const QString &attributeName, QString *s) |
bool | readBoolAttribute (QXmlStreamReader *reader, const QString &attributeName) |
void | readItems (QXmlStreamReader *reader, SessionItem *parent, QString topTag="", MessageService *messageService=nullptr) |
QString | readProperty (QXmlStreamReader *reader, SessionItem *item) |
unsigned | readUIntAttribute (QXmlStreamReader *reader, const QString &attributeName) |
constexpr auto | RealDataModelTag ("RealDataModel") |
constexpr auto | Version ("Version") |
void | writeAttribute (QXmlStreamWriter *writer, const QString &attributeBaseName, const complex_t &c) |
void | writeAttribute (QXmlStreamWriter *writer, const QString &attributeBaseName, const R3 &vec) |
void | writeAttribute (QXmlStreamWriter *writer, const QString &attributeName, const QVariant &variant) |
Write the variant's value as an attribute. More... | |
void | writeAttribute (QXmlStreamWriter *writer, const QString &attributeName, double d) |
void | writeAttribute (QXmlStreamWriter *writer, const QString &attributeName, int d) |
void | writeAttribute (QXmlStreamWriter *writer, const QString &attributeName, unsigned d) |
void | writeItemAndChildItems (QXmlStreamWriter *writer, const SessionItem *item) |
void | writeModel (QXmlStreamWriter *writer, SessionItem *modelRootItem) |
void | writeUid (QXmlStreamWriter *writer, const QString &id) |
void | writeUid (QXmlStreamWriter *writer, const QUuid &id) |
void | writeVariant (QXmlStreamWriter *writer, QVariant variant, int role) |
Write the variant as a complete tag, including the given role. More... | |
Variables | |
constexpr auto | ItemMimeType = "application/org.bornagainproject.xml.item.z" |
constexpr auto | LinkMimeType = "application/org.bornagainproject.fittinglink" |
void GUI::Session::XML::assertExpectedTag | ( | QXmlStreamReader * | reader, |
const QString & | tag | ||
) |
Definition at line 199 of file UtilXML.cpp.
References DeserializationException::streamError().
Referenced by ProjectDocument::readProject().
void GUI::Session::XML::gotoEndElementOfTag | ( | QXmlStreamReader * | reader, |
const QString & | tag | ||
) |
Definition at line 49 of file UtilXML.cpp.
Referenced by readItems(), and JobItem::readNonSessionItems().
|
constexpr |
|
constexpr |
Referenced by SessionModel::canDropMimeData(), readItems(), and writeItemAndChildItems().
|
constexpr |
Referenced by JobModel::JobModel().
|
constexpr |
Referenced by SessionModel::canDropMimeData(), readItems(), and writeItemAndChildItems().
|
constexpr |
Referenced by readItems(), and writeVariant().
void GUI::Session::XML::readAttribute | ( | QXmlStreamReader * | reader, |
const QString & | attributeBaseName, | ||
complex_t * | c | ||
) |
Definition at line 183 of file UtilXML.cpp.
References readAttribute().
void GUI::Session::XML::readAttribute | ( | QXmlStreamReader * | reader, |
const QString & | attributeBaseName, | ||
R3 * | vec | ||
) |
Definition at line 173 of file UtilXML.cpp.
References readAttribute().
void GUI::Session::XML::readAttribute | ( | QXmlStreamReader * | reader, |
const QString & | attributeName, | ||
double * | d | ||
) |
Definition at line 193 of file UtilXML.cpp.
Referenced by readAttribute(), ParameterContainerItem::readContentFrom(), MaterialItem::readContentFrom(), Serialize::rwProperty(), and Serialize::rwValue().
void GUI::Session::XML::readAttribute | ( | QXmlStreamReader * | reader, |
const QString & | attributeName, | ||
QColor * | c | ||
) |
Definition at line 166 of file UtilXML.cpp.
void GUI::Session::XML::readAttribute | ( | QXmlStreamReader * | reader, |
const QString & | attributeName, | ||
QString * | s | ||
) |
Definition at line 160 of file UtilXML.cpp.
bool GUI::Session::XML::readBoolAttribute | ( | QXmlStreamReader * | reader, |
const QString & | attributeName | ||
) |
Definition at line 149 of file UtilXML.cpp.
Referenced by SimulationOptionsItem::readContentFrom().
void GUI::Session::XML::readItems | ( | QXmlStreamReader * | reader, |
SessionItem * | parent, | ||
QString | topTag = "" , |
||
MessageService * | messageService = nullptr |
||
) |
Definition at line 113 of file SessionXML.cpp.
References GUI::Session::XML::Tags::BinaryData(), SessionItem::deserializeBinaryData(), GUI::Session::XML::Tags::DisplayNameAttribute(), SessionModel::getModelTag(), gotoEndElementOfTag(), SessionItem::itemName(), ItemTag(), SessionItem::model(), ModelTypeAttribute(), GUI::Session::XML::Tags::NonSessionItemData(), ParameterTag(), SessionItem::parentItem(), SessionItem::readNonSessionItems(), readProperty(), SessionItem::setDisplayName(), GUI::Session::XML::Tags::TagAttribute(), DeserializationException::tooNew(), and XML::Tags::Version().
Referenced by SessionModel::copy(), and SessionModel::readFrom().
QString GUI::Session::XML::readProperty | ( | QXmlStreamReader * | reader, |
SessionItem * | item | ||
) |
Definition at line 189 of file SessionXML.cpp.
References GUI::Session::XML::Tags::ExternalPropertyColorAtt(), GUI::Session::XML::Tags::ExternalPropertyIdentifierAtt(), GUI::Session::XML::Tags::ParameterExtAttribute(), GUI::Session::XML::Tags::ParameterNameAttribute(), GUI::Session::XML::Tags::ParameterRoleAttribute(), GUI::Session::XML::Tags::ParameterTypeAttribute(), GUI::Session::XML::Tags::ParameterValueAttribute(), SessionItem::parentItem(), SessionItem::setRoleProperty(), ComboProperty::setStringOfSelections(), ComboProperty::setStringOfValues(), and ComboProperty::variant().
Referenced by readItems().
unsigned GUI::Session::XML::readUIntAttribute | ( | QXmlStreamReader * | reader, |
const QString & | attributeName | ||
) |
Definition at line 154 of file UtilXML.cpp.
Referenced by SimulationOptionsItem::readContentFrom().
|
constexpr |
Referenced by RealDataModel::RealDataModel().
|
constexpr |
Referenced by ParameterContainerItem::readContentFrom(), MaterialItem::readContentFrom(), SimulationOptionsItem::readContentFrom(), JobItem::readNonSessionItems(), ParameterContainerItem::writeContentTo(), MaterialItem::writeContentTo(), SimulationOptionsItem::writeContentTo(), and JobItem::writeNonSessionItems().
void GUI::Session::XML::writeAttribute | ( | QXmlStreamWriter * | writer, |
const QString & | attributeBaseName, | ||
const complex_t & | c | ||
) |
Definition at line 102 of file UtilXML.cpp.
References writeAttribute().
void GUI::Session::XML::writeAttribute | ( | QXmlStreamWriter * | writer, |
const QString & | attributeBaseName, | ||
const R3 & | vec | ||
) |
Definition at line 94 of file UtilXML.cpp.
References writeAttribute().
void GUI::Session::XML::writeAttribute | ( | QXmlStreamWriter * | writer, |
const QString & | attributeName, | ||
const QVariant & | variant | ||
) |
Write the variant's value as an attribute.
Definition at line 65 of file UtilXML.cpp.
References GUI::Session::XML::Tags::ParameterExtAttribute().
Referenced by Serialize::rwProperty(), Serialize::rwValue(), writeAttribute(), ParameterContainerItem::writeContentTo(), MaterialItem::writeContentTo(), SimulationOptionsItem::writeContentTo(), JobItem::writeNonSessionItems(), and writeVariant().
void GUI::Session::XML::writeAttribute | ( | QXmlStreamWriter * | writer, |
const QString & | attributeName, | ||
double | d | ||
) |
Definition at line 109 of file UtilXML.cpp.
void GUI::Session::XML::writeAttribute | ( | QXmlStreamWriter * | writer, |
const QString & | attributeName, | ||
int | d | ||
) |
Definition at line 115 of file UtilXML.cpp.
void GUI::Session::XML::writeAttribute | ( | QXmlStreamWriter * | writer, |
const QString & | attributeName, | ||
unsigned | d | ||
) |
Definition at line 121 of file UtilXML.cpp.
void GUI::Session::XML::writeItemAndChildItems | ( | QXmlStreamWriter * | writer, |
const SessionItem * | item | ||
) |
Definition at line 70 of file SessionXML.cpp.
References SessionItem::allowWritingChildToXml(), GUI::Session::XML::Tags::BinaryData(), SessionItem::children(), GUI::Session::XML::Tags::DisplayNameAttribute(), SessionFlags::DisplayNameRole, SessionItem::getRoles(), ItemTag(), SessionItem::modelType(), ModelTypeAttribute(), GUI::Session::XML::Tags::NonSessionItemData(), SessionItem::parentItem(), SessionItem::roleProperty(), SessionItem::serializeBinaryData(), GUI::Session::XML::Tags::TagAttribute(), SessionItem::tagFromItem(), SessionItem::value(), XML::Tags::Version(), SessionItem::writeNonSessionItems(), and writeVariant().
Referenced by SessionModel::copy(), SessionModel::mimeData(), and writeModel().
void GUI::Session::XML::writeModel | ( | QXmlStreamWriter * | writer, |
SessionItem * | modelRootItem | ||
) |
Definition at line 59 of file SessionXML.cpp.
References SessionModel::getModelTag(), SessionItem::model(), and writeItemAndChildItems().
Referenced by SessionModel::writeTo().
void GUI::Session::XML::writeUid | ( | QXmlStreamWriter * | writer, |
const QString & | id | ||
) |
Definition at line 127 of file UtilXML.cpp.
References XML::Tags::Id().
Referenced by Serialize::rwProperty().
void GUI::Session::XML::writeUid | ( | QXmlStreamWriter * | writer, |
const QUuid & | id | ||
) |
Definition at line 132 of file UtilXML.cpp.
References XML::Tags::Id(), and GUI::View::PropertyEditorFactory::toString().
void GUI::Session::XML::writeVariant | ( | QXmlStreamWriter * | writer, |
QVariant | variant, | ||
int | role | ||
) |
Write the variant as a complete tag, including the given role.
Definition at line 137 of file UtilXML.cpp.
References GUI::Session::XML::Tags::ParameterRoleAttribute(), ParameterTag(), GUI::Session::XML::Tags::ParameterTypeAttribute(), GUI::Session::XML::Tags::ParameterValueAttribute(), and writeAttribute().
Referenced by writeItemAndChildItems().
|
constexpr |
Definition at line 30 of file SessionXML.h.
Referenced by SessionModel::canDropMimeData(), SessionModel::dropMimeData(), SessionModel::mimeData(), and SessionModel::mimeTypes().
|
constexpr |
Definition at line 31 of file SessionXML.h.
Referenced by FitParameterModel::dropMimeData(), FitParameterModel::mimeData(), ParameterTuningModel::mimeData(), and FitParameterModel::mimeTypes().