From: <dhu...@us...> - 2006-12-15 09:10:53
|
Revision: 65 http://svn.sourceforge.net/qcell/?rev=65&view=rev Author: dhubleizh Date: 2006-12-15 01:10:52 -0800 (Fri, 15 Dec 2006) Log Message: ----------- - added name parameter to toXmlString - added name atrribute to generated XML to distinguish files in database Modified Paths: -------------- trunk/qcell/baseheaders/Neighbourhood.h trunk/qcell/basesources/Neighbourhood.cpp Modified: trunk/qcell/baseheaders/Neighbourhood.h =================================================================== --- trunk/qcell/baseheaders/Neighbourhood.h 2006-12-15 08:09:05 UTC (rev 64) +++ trunk/qcell/baseheaders/Neighbourhood.h 2006-12-15 09:10:52 UTC (rev 65) @@ -49,7 +49,7 @@ bool fromXmlString(QString *xmlString); bool fromDomElement(QDomElement *xmlElement); - QString toXmlString(); + QString toXmlString(QString name); int getNeighbourNumber(void); bool getBoolValueOf(int index); int getIntValueOf(int index); Modified: trunk/qcell/basesources/Neighbourhood.cpp =================================================================== --- trunk/qcell/basesources/Neighbourhood.cpp 2006-12-15 08:09:05 UTC (rev 64) +++ trunk/qcell/basesources/Neighbourhood.cpp 2006-12-15 09:10:52 UTC (rev 65) @@ -220,12 +220,13 @@ return 0; } -QString Neighbourhood::toXmlString() +QString Neighbourhood::toXmlString(QString name) { QDomDocument doc; QDomElement root, element; NContainer temp; root = doc.createElement("Neighbourhood"); + root.setAttribute( "name", name ); doc.appendChild(root); foreach(temp, neighbourVector) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |