TestEGk 1.5a2 : Piccole migliorie.

This commit is contained in:
Dario Sassi
2014-01-12 22:51:48 +00:00
parent 8ae19e69fb
commit dd8a19b1fa
4 changed files with 13 additions and 7 deletions
+7 -4
View File
@@ -52,13 +52,16 @@ TegExecutor::Execute( const string& sCmd1, const string& sCmd2, const STRVECTOR&
// output di debug
sOut = "Cmd = [" + sCmd1 + "][" + sCmd2 + "] Par = [" ;
sOut = sCmd1 ;
if ( ! sCmd2.empty())
sOut += "." + sCmd2 ;
sOut += "( " ;
for ( theConstIter = vsParams.begin() ; theConstIter != vsParams.end() ; ++theConstIter) {
if ( theConstIter != vsParams.begin())
sOut += "][" ;
sOut += ", " ;
sOut += *theConstIter ;
}
sOut += "]" ;
sOut += ")" ;
LOG_DBG_INFO( m_pLogger, sOut.c_str())
// esecuzione comando
@@ -112,7 +115,7 @@ TegExecutor::ExecuteRun( const string& sCmd2, const STRVECTOR& vsParams)
SetEGkLogger( m_pLogger) ;
pGdb->Init() ;
pGdbExec->Init( Get( pGdb)) ;
if ( ! pCmdParser->Init( vsParams[0], Get( pGdbExec), m_pLogger)) {
if ( ! pCmdParser->Init( vsParams[0], Get( pGdbExec), m_pLogger, 1)) {
string sOut = "Error on Parser.Init (" + vsParams[0] + ")" ;
LOG_ERROR( m_pLogger, sOut.c_str())
return false ;
+4 -2
View File
@@ -14,11 +14,12 @@
//--------------------------- Include ----------------------------------------
#include "stdafx.h"
#include "TegExecutor.h"
#include "/EgtDev/Include/EgnGetModuleVer.h"
#include "/EgtDev/Include/EGnDllMain.h"
#include "/EgtDev/Include/EgnGetModuleVer.h"
#include "/EgtDev/Include/EGnStringUtils.h"
#include "/EgtDev/Include/EGnStringConverter.h"
#include "/EgtDev/Include/EgnCmdParser.h"
#include "/EgtDev/Include/EGnCmdParser.h"
#include "/EgtDev/Include/ENkDllMain.h"
#include "/EgtDev/Include/EGkDllMain.h"
#include "/EgtDev/Include/EGkGeomDB.h"
#include "/EgtDev/Include/EGkGdbExecutor.h"
@@ -93,6 +94,7 @@ wmain( int argc, wchar_t* argv[])
// versione delle librerie
LOG_INFO( &logger, GetEGnVersion())
LOG_INFO( &logger, GetENkVersion())
LOG_INFO( &logger, GetEGkVersion())
// nessun errore
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -28,5 +28,6 @@
#include "/EgtDev/Include/EgtLibVer.h"
#pragma comment(lib, EGTLIBDIR "EgtGeomKernel" EGTLIBVER ".lib")
#pragma comment(lib, EGTLIBDIR "EgtGeneral" EGTLIBVER ".lib")
#pragma comment(lib, EGTLIBDIR "EgtNumKernel" EGTLIBVER ".lib")
#pragma comment(lib, EGTLIBDIR "EgtGeomKernel" EGTLIBVER ".lib")