diff --git a/EXeConst.h b/EXeConst.h index b4ba09d..d29fb8d 100644 --- a/EXeConst.h +++ b/EXeConst.h @@ -101,6 +101,14 @@ enum ZoomType { ZM_ALL = 1, // zoom tutto ZM_IN = 2, // ingrandisci ZM_OUT = 3} ; // rimpicciolisci +//----------------- Costanti errore simulatore in cieco ------------------------ +enum SimHideErr { SHE_NONE = 0, // nessun errore + SHE_INIT = 1, // errore nell'avvio della simulazione + SHE_OUTSTROKE = 2, // errore di extracorsa + SHE_DIR_ERR = 3, // errore direzione utensile non raggiungibile + SHE_COLLISION = 4, // errore collisione testa-pezzo + SHE_GENERAL = 5} ; // errore generico + //----------------- Costanti per sostituzione direttorio e nome progetto -------------------- const std::string SUB_PROJECT_DIR = "%PRJDIR%" ; const std::string SUB_PROJECT_TITLE = "%PRJTITLE%" ; diff --git a/EXeExecutor.h b/EXeExecutor.h index fe4ea26..f706194 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -58,7 +58,9 @@ EXE_EXPORT bool ExeGetKeyOptLeftDays( int& nOptLeftDays) ; EXE_EXPORT bool ExeGetOsInfo( std::string& sOs) ; EXE_EXPORT bool ExeGetCpuInfo( std::string& sCpu) ; EXE_EXPORT bool ExeGetMemoryInfo( std::string& sMem) ; -EXE_EXPORT bool ExeOutLog( const std::string& sMsg) ; +EXE_EXPORT bool ExeOutLog( const std::string& sMsg, int nDebugLevel = 0) ; +EXE_EXPORT bool ExeSetEnableUI( bool bEnableUI) ; +EXE_EXPORT bool ExeGetEnableUI( void) ; EXE_EXPORT bool ExeSetProcessEvents( pfProcEvents pFun) ; EXE_EXPORT int ExeProcessEvents( int nProg, int nPause) ; EXE_EXPORT bool ExeSetOutText( pfOutText pFun) ; @@ -879,6 +881,7 @@ EXE_EXPORT bool ExeSimExit( void) ; // Generation & T&L estimation EXE_EXPORT bool ExeGenerate( const std::string& sCncFile, const std::string& sInfo) ; EXE_EXPORT bool ExeEstimate( const std::string& sEstFile, const std::string& sInfo) ; +EXE_EXPORT bool ExeSimulate( int& nErr, std::string& sError) ; // Machine EXE_EXPORT int ExeGetBaseId( const std::string& sBase) ; EXE_EXPORT int ExeGetTableId( const std::string& sTable) ;