mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-04 09:50:33 +05:00
PAL10237. Read HypothesesSet's
This commit is contained in:
parent
60bdcf56b1
commit
12b34b1b56
@ -143,6 +143,25 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (qName == "hypotheses-set-group") // group of sets of hypotheses
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else if (qName == "hypotheses-set") // a set of hypotheses
|
||||||
|
{
|
||||||
|
if (atts.value("name") != "")
|
||||||
|
{
|
||||||
|
HypothesesSet* aHypoSet = new HypothesesSet ( atts.value("name") );
|
||||||
|
myListOfHypothesesSets.push_back( aHypoSet );
|
||||||
|
|
||||||
|
for ( int isHypo = 0; isHypo < 2; ++isHypo )
|
||||||
|
{
|
||||||
|
QString aHypos = isHypo ? atts.value("hypos") : atts.value("algos");
|
||||||
|
aHypos = aHypos.remove( ' ' );
|
||||||
|
QStringList* aHypoList = isHypo ? & aHypoSet->HypoList : & aHypoSet->AlgoList;
|
||||||
|
*aHypoList = QStringList::split( ',', aHypos );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// error
|
// error
|
||||||
|
@ -53,6 +53,8 @@ class SMESHGUI_XmlHandler : public QXmlDefaultHandler
|
|||||||
std::map<std::string, HypothesisData*> myHypothesesMap;
|
std::map<std::string, HypothesisData*> myHypothesesMap;
|
||||||
std::map<std::string, HypothesisData*> myAlgorithmsMap;
|
std::map<std::string, HypothesisData*> myAlgorithmsMap;
|
||||||
|
|
||||||
|
std::list<HypothesesSet*> myListOfHypothesesSets;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString myErrorProt;
|
QString myErrorProt;
|
||||||
QString myPluginName;
|
QString myPluginName;
|
||||||
|
Loading…
Reference in New Issue
Block a user