From d3e04132f229eccc07c5fb2115e6930c4989b3c8 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sat, 4 Feb 2017 18:43:46 +0000 Subject: [PATCH] Include : - aggiornamento interfacce. --- EInAPI.h | 3 +++ EMkMachMgr.h | 2 ++ EXeExecutor.h | 3 +++ 3 files changed, 8 insertions(+) diff --git a/EInAPI.h b/EInAPI.h index 9e34cbb..a09a8dc 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -522,6 +522,9 @@ EIN_EXPORT int __stdcall EgtVerifyCutAsSplitting( int nMchId) ; // Machining EIN_EXPORT BOOL __stdcall EgtInitMachMgr( const wchar_t* wsMachinesDir) ; +// Errors +EIN_EXPORT int __stdcall EgtGetLastMachMgrErrorId( void) ; +EIN_EXPORT wchar_t* __stdcall EgtGetLastMachMgrErrorString( void) ; // Machines EIN_EXPORT BOOL __stdcall EgtSetCurrMachine( const wchar_t* wsMachineName) ; EIN_EXPORT BOOL __stdcall EgtGetCurrMachineName( wchar_t*& wsMachineName) ; diff --git a/EMkMachMgr.h b/EMkMachMgr.h index b4863b9..9d72d74 100644 --- a/EMkMachMgr.h +++ b/EMkMachMgr.h @@ -34,6 +34,8 @@ class __declspec( novtable) IMachMgr int nContextId, const std::string& sLuaLibsDir, const std::string& sLuaLastRequire) = 0 ; virtual bool Update( void) = 0 ; virtual bool Insert( int nInsGrp) = 0 ; + virtual int GetLastErrorId( void) = 0 ; + virtual std::string GetLastErrorString( void) = 0 ; // Machines virtual bool SetCurrMachine( const std::string& sMachineName) = 0 ; virtual bool GetCurrMachineName( std::string& sMachineName) const = 0 ; diff --git a/EXeExecutor.h b/EXeExecutor.h index 6170b20..ddc1556 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -568,6 +568,9 @@ EXE_EXPORT int ExeVerifyCutAsSplitting( int nMchId) ; EXE_EXPORT bool ExeInitMachMgr( const std::string& sMachinesDir) ; EXE_EXPORT bool ExeUpdateMachMgr( void) ; EXE_EXPORT bool ExeInsertMachMgr( int nInsGrp) ; +// Errors +EXE_EXPORT int ExeGetLastMachMgrErrorId( void) ; +EXE_EXPORT std::string ExeGetLastMachMgrErrorString( void) ; // Machines EXE_EXPORT bool ExeSetCurrMachine( const std::string& sMachineName) ; EXE_EXPORT bool ExeGetCurrMachineName( std::string& sMachineName) ;