[GME-commit] GMESRC/Paradigms/MetaGME/BonExtension/Rep MakeVisitor.cpp,1.5,1.6

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Thu Jan 6 15:45:55 CST 2005


Update of /var/lib/gme/GMESRC/Paradigms/MetaGME/BonExtension/Rep
In directory braindrain:/tmp/cvs-serv17834/Rep

Modified Files:
	MakeVisitor.cpp 
Log Message:
Making the visitor methods virtual.


CVS User: zolmol

Index: MakeVisitor.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/BonExtension/Rep/MakeVisitor.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** MakeVisitor.cpp	16 Jun 2004 18:35:02 -0000	1.5
--- MakeVisitor.cpp	6 Jan 2005 21:45:52 -0000	1.6
***************
*** 63,67 ****
  		mmm += "		void visitFolderImpl( const BON::Folder& fold );\n";
  
! 	mmm += "	private :\n";
  
  	for( unsigned int j = 0; j < HOW_MANY_ITEMS; ++j)
--- 63,67 ----
  		mmm += "		void visitFolderImpl( const BON::Folder& fold );\n";
  
! 	mmm += "	protected :\n";
  
  	for( unsigned int j = 0; j < HOW_MANY_ITEMS; ++j)
***************
*** 69,73 ****
  	{
  		std::string name = m_entities[j][i];
! 		mmm += "		bool visit" + name + "( const " + name + "& object );\n";
  	}
  	mmm += "};\n";
--- 69,73 ----
  	{
  		std::string name = m_entities[j][i];
! 		mmm += "		virtual bool visit" + name + "( const " + name + "& object );\n";
  	}
  	mmm += "};\n";



More information about the GME-commit mailing list