[GME-commit] GMESRC/Paradigms/MetaGME/MetaInterpreter2004 BON2Component.cpp,1.16,1.17 BON2Component.h,1.6,1.7

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Mon Jul 12 18:01:11 CDT 2004


Update of /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004
In directory braindrain:/tmp/cvs-serv25525

Modified Files:
	BON2Component.cpp BON2Component.h 
Log Message:
Making possible invoking in silent mode, supporting relative pathnames.


CVS User: zolmol

Index: BON2Component.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/BON2Component.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** BON2Component.cpp	30 Jun 2004 17:55:18 -0000	1.16
--- BON2Component.cpp	12 Jul 2004 22:01:08 -0000	1.17
***************
*** 161,164 ****
--- 161,176 ----
  {
  	m_projectName = project->getName();
+ 	m_dir = "";
+ 
+ 	if ( global_vars.silent_mode)
+ 	{
+ 		CComPtr<IMgaProject> mgaProject = project->getProjectI();
+ 		CComBSTR    connString;
+ 		COMTHROW(mgaProject->get_ProjectConnStr(&connString));
+ 		std::string path = Util::Copy( connString);
+ 		int e = path.rfind('\\');
+ 		if( e != std::string::npos && path.substr(0, 4) == "MGA=") m_dir = path.substr(4, e-3); // cut leading "MGA=" , preserve tailing '\\'
+ 	}
+ 
  	m_entities.clear();
  	m_toBeDeletedEntities.clear();
***************
*** 1509,1513 ****
  	initMembers( project);
  
! 	if ( Dumper::selectOutputFiles( m_projectName) > 1)
  	{
  		TO("Error at startup. Output file name selection or other file operation failed or cancelled by user.");
--- 1521,1525 ----
  	initMembers( project);
  
! 	if ( Dumper::selectOutputFiles( m_projectName, m_dir) > 1)
  	{
  		TO("Error at startup. Output file name selection or other file operation failed or cancelled by user.");

Index: BON2Component.h
===================================================================
RCS file: /var/lib/gme/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/BON2Component.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** BON2Component.h	11 Mar 2004 15:39:37 -0000	1.6
--- BON2Component.h	12 Jul 2004 22:01:08 -0000	1.7
***************
*** 71,74 ****
--- 71,75 ----
  private: // members
  	std::string m_projectName;
+ 	std::string m_dir; // stores the directory names the interpreter has been invoked with
  
  	Entities m_entities;



More information about the GME-commit mailing list