[GME-commit] GMESRC/GME/XmlBackEnd/SVNCode Util.cpp,1.2,1.3

Log messages of CVS commits gme-commit at list.isis.vanderbilt.edu
Thu Feb 21 12:17:01 CST 2008


Update of /project/gme-repository/GMESRC/GME/XmlBackEnd/SVNCode
In directory escher:/tmp/cvs-serv24322/SVNCode

Modified Files:
	Util.cpp 
Log Message:
Xml parsing notifies about errors in case of
the individual xml files and the project files.

Shared parser objects used for faster parsing if option turned on from config file.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: Util.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/XmlBackEnd/SVNCode/Util.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Util.cpp	13 Feb 2008 18:54:57 -0000	1.2
--- Util.cpp	21 Feb 2008 18:16:59 -0000	1.3
***************
*** 22,25 ****
--- 22,26 ----
  
  #include "StdAfx.h"
+ #include "..\\MsgConsole.h"
  
  #if(USESVN)
***************
*** 400,404 ****
      {
          svn_error_clear( p_err);
! 		AfxMessageBox( "Other exception thrown, Util::handleSVNError");
          return;
      } 
--- 401,406 ----
      {
          svn_error_clear( p_err);
! 		MsgConsole::ssendMsg( "[Util::handleSVNError] Unknown exception thrown.", MSG_ERROR);
! 		AfxMessageBox( "[Util::handleSVNError] Unknown exception thrown.");
          return;
      } 
***************
*** 406,410 ****
  	std::string buffer;
      assembleErrorMessage( p_err, 0, APR_SUCCESS, buffer);
! 	AfxMessageBox( (std::string( "SVN Error details follow:\n") + buffer).c_str());
  	//std::cout << "Error " << buffer << std::endl;
  
--- 408,430 ----
  	std::string buffer;
      assembleErrorMessage( p_err, 0, APR_SUCCESS, buffer);
! 	buffer = "SVN Error details follow:\n" + buffer;
! 	AfxMessageBox( buffer.c_str());
! 
! 	// modifying buffer for the console
! 	// replacing '\n's with <br>s
! 	std::string::size_type p = buffer.find( "\n");
! 	while( std::string::npos != p)
! 	{
! 		p = buffer.find( "\n");
! 	    buffer.replace( p, 1, "<br>");
! 	}
! 	// removing '\r's
! 	p = buffer.find( "\r");
! 	while( std::string::npos != p)
! 	{
! 		p = buffer.find( "\r");
! 	    buffer.erase( p, 1);
! 	}
! 	MsgConsole::ssendMsg( "SVN Error details follow:<br>" + buffer, MSG_ERROR);
  	//std::cout << "Error " << buffer << std::endl;
  



More information about the GME-commit mailing list