18 #include <QXmlStreamWriter>
25 const QString RunImmediately(
"RunImmediately");
26 const QString NumberOfThreads(
"NumberOfThreads");
27 const QString Analytical(
"Analytical");
28 const QString NumberOfMonteCarloPoints(
"NumberOfMonteCarloPoints");
29 const QString UseAverageMaterials(
"UseAverageMaterials");
30 const QString IncludeSpecularPeak(
"IncludeSpecularPeak");
Defines class DeserializationException.
Defines class SimulationOptionsItem.
static DeserializationException tooOld()
static DeserializationException tooNew()
unsigned m_numberOfMonteCarloPoints
bool m_includeSpecularPeak
bool runImmediately() const
void setRunImmediately(bool runImmediately)
bool includeSpecularPeak() const
unsigned m_numberOfThreads
void setUseAverageMaterials(bool useAverageMaterials)
unsigned numberOfThreads() const
void writeContentTo(QXmlStreamWriter *writer) const
void setNumberOfThreads(unsigned n)
void setIncludeSpecularPeak(bool includeSpecularPeak)
void readContentFrom(QXmlStreamReader *reader)
void setUseMonteCarloIntegration(unsigned numberOfPoints)
bool m_computationMethodAnalytical
bool m_useAverageMaterials
bool useAverageMaterials() const
unsigned numberOfMonteCarloPoints() const
bool useMonteCarloIntegration() const
bool runInBackground() const
bool useAnalytical() const
bool readBoolAttribute(QXmlStreamReader *reader, const QString &attributeName)
constexpr auto Version("Version")
void writeAttribute(QXmlStreamWriter *writer, const QString &attributeName, const QVariant &variant)
Write the variant's value as an attribute.
unsigned readUIntAttribute(QXmlStreamReader *reader, const QString &attributeName)