Mercurial > hg > svcore
diff data/model/SparseModel.h @ 407:88ad01799040
* Save alignments to session file. Needs much testing.
author | Chris Cannam |
---|---|
date | Tue, 29 Apr 2008 15:34:17 +0000 |
parents | a1b6d2e33cab |
children | a00902d5f0ab |
line wrap: on
line diff
--- a/data/model/SparseModel.h Tue Apr 29 10:59:19 2008 +0000 +++ b/data/model/SparseModel.h Tue Apr 29 15:34:17 2008 +0000 @@ -133,6 +133,8 @@ QString getTypeName() const { return tr("Sparse"); } + virtual QString getXmlOutputType() const { return "sparse"; } + virtual void toXml(QTextStream &out, QString indent = "", QString extraAttributes = "") const; @@ -554,10 +556,13 @@ std::cerr << "SparseModel::toXml: extraAttributes = \"" << extraAttributes.toStdString() << std::endl; + QString type = getXmlOutputType(); + Model::toXml (out, indent, - QString("type=\"sparse\" dimensions=\"%1\" resolution=\"%2\" notifyOnAdd=\"%3\" dataset=\"%4\" %5") + QString("type=\"%1\" dimensions=\"%2\" resolution=\"%3\" notifyOnAdd=\"%4\" dataset=\"%5\" %6") + .arg(type) .arg(PointType(0).getDimensions()) .arg(m_resolution) .arg(m_notifyOnAdd ? "true" : "false")