From 361480e3e7b97629f92adb998cf5b54813b2bab2 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 31 Mar 2015 13:17:20 +0000 Subject: [PATCH] Include : - aggiornamenti. --- EInAPI.h | 7 +++++++ EMkMachMgr.h | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/EInAPI.h b/EInAPI.h index 4386136..2b87b0c 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -370,7 +370,14 @@ EIN_EXPORT BOOL __stdcall EgtShearGroup( int nId, const double vPnt[3], const do // Machining EIN_EXPORT BOOL __stdcall EgtInitMachMgr( void) ; +EIN_EXPORT int __stdcall EgtGetMachGroupNbr( void) ; EIN_EXPORT int __stdcall EgtAddMachGroup( const wchar_t* wsName, const wchar_t* wsMachineName) ; +EIN_EXPORT BOOL __stdcall EgtRemoveMachGroup( int nMGroupInd) ; +EIN_EXPORT BOOL __stdcall EgtGetMachGroupName( int nMGroupInd, wchar_t*& wsName) ; +EIN_EXPORT BOOL __stdcall EgtGetMachGroupInd( const wchar_t* wsName, int* pnInd) ; +EIN_EXPORT BOOL __stdcall EgtSetCurrMachGroup( int nMGroupInd) ; +EIN_EXPORT BOOL __stdcall EgtResetCurrMachGroup( void) ; +EIN_EXPORT BOOL __stdcall EgtGetCurrMachGroup( int* pnInd) ; // Scene EIN_EXPORT BOOL __stdcall EgtInitScene( HWND hWnd, int nDriver, int b2Buff, int nColorBits, int nDepthBits) ; diff --git a/EMkMachMgr.h b/EMkMachMgr.h index 533f846..5f6ec93 100644 --- a/EMkMachMgr.h +++ b/EMkMachMgr.h @@ -29,7 +29,17 @@ class __declspec( novtable) IMachMgr public : virtual ~IMachMgr( void) {} virtual bool Init( IGeomDB* pGeomDB) = 0 ; - virtual int AddMachGroup( const std::string& sName, const std::string& sMachineName) = 0 ; + virtual bool Update( void) = 0 ; + virtual bool Insert( int nInsGrp) = 0 ; + virtual int GetMachGroupNbr( void) const = 0 ; + virtual bool GetMachGroupNewName( std::string& sName) const = 0 ; + virtual int AddMachGroup( const std::string& sName, const std::string& sMachineName) = 0 ; + virtual bool RemoveMachGroup( int nMGroup) = 0 ; + virtual bool GetMachGroupName( int nMGroup, std::string& sName) const = 0 ; + virtual bool GetMachGroupInd( const std::string& sName, int& nMGroup) const = 0 ; + virtual bool SetCurrMachGroup( int nMGroup) = 0 ; + virtual bool ResetCurrMachGroup( void) = 0 ; + virtual bool GetCurrMachGroup( int& nMGroup) const ; } ; //-----------------------------------------------------------------------------