From dd8a19b1fa556e72f342c07d2e88e671a5311b08 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sun, 12 Jan 2014 22:51:48 +0000 Subject: [PATCH] TestEGk 1.5a2 : Piccole migliorie. --- TegExecutor.cpp | 11 +++++++---- TestEGk.cpp | 6 ++++-- TestEGk.rc | Bin 7634 -> 7654 bytes stdafx.h | 3 ++- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/TegExecutor.cpp b/TegExecutor.cpp index dcb833d..31398ef 100644 --- a/TegExecutor.cpp +++ b/TegExecutor.cpp @@ -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 ; diff --git a/TestEGk.cpp b/TestEGk.cpp index 4323d6f..5eaddc7 100644 --- a/TestEGk.cpp +++ b/TestEGk.cpp @@ -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 diff --git a/TestEGk.rc b/TestEGk.rc index 08cf4653074e640581a791d8335e373dd2f60224..2e7c89f827040758b5ef197cc1c0a6a5cf0f892a 100644 GIT binary patch delta 79 zcmca){mgp9H#SD2&FA@UGEKg~8N_HbnNdV{asbypPF)5g1_K5|29wE*!kwF^aa%Bh Q)wu&HOf{Psg)ede0P}wq1poj5 delta 51 zcmaE6eaU*mH#SDY%{TdOGEKg~8N_HfSyAZqW(n>C%wSP>AO#YcEWzEed7iKb7XTA_ B5~%