[commit] r1963 - trunk/GME/Parser

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Jul 10 18:32:37 CDT 2012


Author: ksmyth
Date: Tue Jul 10 18:32:37 2012
New Revision: 1963

Log:
MgaDumper: tie-break sort on rolename, so self-connections are persisted in the same order

Modified:
   trunk/GME/Parser/MgaDumper.cpp

Modified: trunk/GME/Parser/MgaDumper.cpp
==============================================================================
--- trunk/GME/Parser/MgaDumper.cpp	Sat Jul  7 16:40:27 2012	(r1962)
+++ trunk/GME/Parser/MgaDumper.cpp	Tue Jul 10 18:32:37 2012	(r1963)
@@ -1133,7 +1133,8 @@
 
 	DumpFCO(connection);
 
-	if(!skipdump) Dump(connection, &IMgaConnection::get_ConnPoints);
+	if(!skipdump)
+		Dump(connection, &IMgaConnection::get_ConnPoints);
 
 	EndElem();
 }
@@ -1471,6 +1472,10 @@
 		COMTHROW(fco->get_ID(&bstr));
 		std::tstring s;
 		CopyTo(bstr,s);
+		// Tie-break sort on role, for self-connections
+		CComBSTR role;
+		COMTHROW((*v)[i]->get_ConnRole(&role));
+		s += role;
 		vPrime.push_back(s);
 	}
 	


More information about the gme-commit mailing list