Skip to content
Snippets Groups Projects
Commit 448d35b2 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

serialize crosscorr item

parent 58753d6d
No related branches found
No related tags found
1 merge request!2715Replace single crossCorrelationLength parameter by CrosscorrelationModel individual for each interface
......@@ -20,6 +20,7 @@ namespace Tag {
const QString BaseData("BaseData");
const QString HeightDistributionModel("HeightDistributionModel");
const QString CrosscorrelationModel("CrosscorrelationModel");
const QString Sigma("Sigma");
const QString Hurst("Hurst");
const QString LateralCorrelationLength("LateralCorrelationLength");
......@@ -30,6 +31,7 @@ const QString LateralCorrelationLength("LateralCorrelationLength");
void RoughnessItem::writeTo(QXmlStreamWriter* w) const
{
XML::writeTaggedElement(w, Tag::HeightDistributionModel, m_interlayer_model);
XML::writeTaggedElement(w, Tag::CrosscorrelationModel, m_crosscorr_model);
}
void RoughnessItem::readFrom(QXmlStreamReader* r)
......@@ -39,6 +41,8 @@ void RoughnessItem::readFrom(QXmlStreamReader* r)
if (tag == Tag::HeightDistributionModel)
XML::readTaggedElement(r, tag, m_interlayer_model);
else if (tag == Tag::CrosscorrelationModel)
XML::readTaggedElement(r, tag, m_crosscorr_model);
else
r->skipCurrentElement();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment