+ // Save connections
+ auto mIt = this->m_Graph->BeginEdgesRows( );
+ for( ; mIt != this->m_Graph->EndEdgesRows( ); ++mIt )
+ {
+ auto rIt = mIt->second.begin( );
+ for( ; rIt != mIt->second.end( ); ++rIt )
+ {
+ auto eIt = rIt->second.begin( );
+ for( ; eIt != rIt->second.end( ); ++eIt )
+ {
+ TiXmlElement* conn = new TiXmlElement( "connection" );
+ TiXmlElement* orig = new TiXmlElement( "origin" );
+ TiXmlElement* dest = new TiXmlElement( "destination" );
+ orig->SetAttribute( "filter", mIt->first.c_str( ) );
+ orig->SetAttribute( "name", eIt->first.c_str( ) );
+ dest->SetAttribute( "filter", rIt->first.c_str( ) );
+ dest->SetAttribute( "name", eIt->second.c_str( ) );
+
+ conn->LinkEndChild( orig );
+ conn->LinkEndChild( dest );
+ root->LinkEndChild( conn );
+
+ } // rof
+
+ } // rof
+
+ } // rof
+