EgtExecutor 1.6k5 :

- modifiche per gestione DB lavorazioni.
This commit is contained in:
Dario Sassi
2015-11-14 16:24:48 +00:00
parent e999b61061
commit bd531c8519
3 changed files with 562 additions and 64 deletions
+212
View File
@@ -694,6 +694,16 @@ ExeTdbIsCurrToolModified( void)
return pGseCtx->m_pMachMgr->TdbIsCurrToolModified() ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbSetCurrToolParam( int nType, bool bVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro dell'utensile
return pGseCtx->m_pMachMgr->TdbSetCurrToolParam( nType, bVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbSetCurrToolParam( int nType, int nVal)
@@ -724,6 +734,16 @@ ExeTdbSetCurrToolParam( int nType, const string& sVal)
return pGseCtx->m_pMachMgr->TdbSetCurrToolParam( nType, sVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbGetCurrToolParam( int nType, bool& bVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero il parametro dell'utensile
return pGseCtx->m_pMachMgr->TdbGetCurrToolParam( nType, bVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbGetCurrToolParam( int nType, int& nVal)
@@ -784,6 +804,198 @@ ExeTdbGetToolHolderDir( std::string& sTHolderDir)
return pGseCtx->m_pMachMgr->TdbGetToolHolderDir( sTHolderDir) ;
}
//-----------------------------------------------------------------------------
// DB lavorazioni
//-----------------------------------------------------------------------------
bool
ExeMdbGetMachiningNewName( string& sName)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero un nuovo nome a partire da quello passato
return pGseCtx->m_pMachMgr->MdbGetMachiningNewName( sName) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbAddMachining( const string& sName, int nType)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// aggiungo la lavorazione
return pGseCtx->m_pMachMgr->MdbAddMachining( sName, nType) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbCopyMachining( const string& sSource, const string& sName)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// copio la lavorazione
return pGseCtx->m_pMachMgr->MdbCopyMachining( sSource, sName) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbRemoveMachining( const string& sName)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// rimuovo la lavorazione
return pGseCtx->m_pMachMgr->MdbRemoveMachining( sName) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbGetFirstMachining( int nType, string& sName)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// rimuovo la lavorazione
return pGseCtx->m_pMachMgr->MdbGetFirstMachining( nType, sName) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbGetNextMachining( int nType, string& sName)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// rimuovo la lavorazione
return pGseCtx->m_pMachMgr->MdbGetNextMachining( nType, sName) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbSetCurrMachining( const std::string& sName)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposto la lavorazione corrente
return pGseCtx->m_pMachMgr->MdbSetCurrMachining( sName) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbSaveCurrMachining( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// salvo la lavorazione corrente
return pGseCtx->m_pMachMgr->MdbSaveCurrMachining() ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbIsCurrMachiningModified( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// verifico se la lavorazione corrente è stata modificata
return pGseCtx->m_pMachMgr->MdbIsCurrMachiningModified() ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbSetCurrMachiningParam( int nType, bool bVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro della lavorazione
return pGseCtx->m_pMachMgr->MdbSetCurrMachiningParam( nType, bVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbSetCurrMachiningParam( int nType, int nVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro della lavorazione
return pGseCtx->m_pMachMgr->MdbSetCurrMachiningParam( nType, nVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbSetCurrMachiningParam( int nType, double dVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro della lavorazione
return pGseCtx->m_pMachMgr->MdbSetCurrMachiningParam( nType, dVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbSetCurrMachiningParam( int nType, const string& sVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro della lavorazione
return pGseCtx->m_pMachMgr->MdbSetCurrMachiningParam( nType, sVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbGetCurrMachiningParam( int nType, bool& bVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro della lavorazione
return pGseCtx->m_pMachMgr->MdbGetCurrMachiningParam( nType, bVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbGetCurrMachiningParam( int nType, int& nVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro della lavorazione
return pGseCtx->m_pMachMgr->MdbGetCurrMachiningParam( nType, nVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbGetCurrMachiningParam( int nType, double& dVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro della lavorazione
return pGseCtx->m_pMachMgr->MdbGetCurrMachiningParam( nType, dVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbGetCurrMachiningParam( int nType, string& sVal)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposta il parametro della lavorazione
return pGseCtx->m_pMachMgr->MdbGetCurrMachiningParam( nType, sVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbSave( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// eseguo il salvataggio del DB lavorazioni
return pGseCtx->m_pMachMgr->MdbSave() ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbGetMachiningDir( std::string& sMchDir)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero il direttorio delle lavorazioni
return pGseCtx->m_pMachMgr->MdbGetMachiningDir( sMchDir) ;
}
//-----------------------------------------------------------------------------
// Operazioni
//-----------------------------------------------------------------------------
BIN
View File
Binary file not shown.
+350 -64
View File
@@ -22,6 +22,8 @@
using namespace std ;
//-------------------------------------------------------------------------------
// Machines
//-------------------------------------------------------------------------------
static int
LuaSetCurrMachine( lua_State* L)
@@ -37,6 +39,8 @@ LuaSetCurrMachine( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
// Mach Groups
//-------------------------------------------------------------------------------
static int
LuaGetMachGroupCount( lua_State* L)
@@ -201,6 +205,8 @@ LuaGetCurrMachGroup( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
// Raw Parts & Parts
//-------------------------------------------------------------------------------
static int
LuaGetRawPartCount( lua_State* L)
@@ -545,6 +551,8 @@ LuaRotatePartInRawPart( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
// Table & Fixtures
//-------------------------------------------------------------------------------
static int
LuaSetTable( lua_State* L)
@@ -599,6 +607,8 @@ LuaAddFixture( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
// Tools database
//-------------------------------------------------------------------------------
static int
LuaTdbGetToolNewName( lua_State* L)
@@ -754,7 +764,14 @@ LuaTdbSetCurrToolParam( lua_State* L)
int nType ;
LuaCheckParam( L, 1, nType)
// leggo opportunamente il valore da assegnare
if ( ( nType & TPA_INT) != 0) {
if ( ( nType & TPA_BOOL) != 0) {
bool bVal ;
LuaCheckParam( L, 2, bVal)
LuaClearStack( L) ;
bool bOk = ExeTdbSetCurrToolParam( nType, bVal) ;
LuaSetParam( L, bOk) ;
}
else if ( ( nType & TPA_INT) != 0) {
int nVal ;
LuaCheckParam( L, 2, nVal)
LuaClearStack( L) ;
@@ -789,7 +806,15 @@ LuaTdbGetCurrToolParam( lua_State* L)
LuaCheckParam( L, 1, nType)
LuaClearStack( L) ;
// recupero il parametro dell'utensile voluto
if ( ( nType & TPA_INT) != 0) {
if ( ( nType & TPA_BOOL) != 0) {
bool bVal ;
bool bOk = ExeTdbGetCurrToolParam( nType, bVal) ;
if ( bOk)
LuaSetParam( L, bVal) ;
else
LuaSetParam( L) ;
}
else if ( ( nType & TPA_INT) != 0) {
int nVal ;
bool bOk = ExeTdbGetCurrToolParam( nType, nVal) ;
if ( bOk)
@@ -830,6 +855,310 @@ LuaTdbSave( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
// Machinings database
//-------------------------------------------------------------------------------
static int
LuaMdbGetMachiningNewName( lua_State* L)
{
// 1 parametro : sName
string sName ;
LuaCheckParam( L, 1, sName)
LuaClearStack( L) ;
// verifico nome e se necessario lo modifico per renderlo nuovo nel DB
bool bOk = ExeMdbGetMachiningNewName( sName) ;
if ( bOk)
LuaSetParam( L, sName) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbAddMachining( lua_State* L)
{
// 2 parametri : sName, nType
string sName ;
LuaCheckParam( L, 1, sName)
int nType ;
LuaCheckParam( L, 2, nType)
LuaClearStack( L) ;
// aggiungo la lavorazione
bool bOk = ExeMdbAddMachining( sName, nType) ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbCopyMachining( lua_State* L)
{
// 2 parametri : sSource, sName
string sSource ;
LuaCheckParam( L, 1, sSource)
string sName ;
LuaCheckParam( L, 2, sName)
LuaClearStack( L) ;
// aggiungo la lavorazione
bool bOk = ExeMdbCopyMachining( sSource, sName) ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbRemoveMachining( lua_State* L)
{
// 1 parametro : sName
string sName ;
LuaCheckParam( L, 1, sName)
LuaClearStack( L) ;
// aggiungo la lavorazione
bool bOk = ExeMdbRemoveMachining( sName) ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbGetFirstMachining( lua_State* L)
{
// 1 parametro : nType
int nType ;
LuaCheckParam( L, 1, nType)
LuaClearStack( L) ;
// cerco la prima lavorazione
string sName ;
bool bOk = ExeMdbGetFirstMachining( nType, sName) ;
if ( bOk)
LuaSetParam( L, sName) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbGetNextMachining( lua_State* L)
{
// 1 parametro : nType
int nType ;
LuaCheckParam( L, 1, nType)
LuaClearStack( L) ;
// cerco la successiva lavorazione
string sName ;
bool bOk = ExeMdbGetNextMachining( nType, sName) ;
if ( bOk)
LuaSetParam( L, sName) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbSetCurrMachining( lua_State* L)
{
// 1 parametro : sName
string sName ;
LuaCheckParam( L, 1, sName)
LuaClearStack( L) ;
// imposto la lavorazione corrente
bool bOk = ExeMdbSetCurrMachining( sName) ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbSetCurrMachiningParam( lua_State* L)
{
// 2 parametri : nType, Val
int nType ;
LuaCheckParam( L, 1, nType)
// leggo opportunamente il valore da assegnare
if ( ( nType & TPA_BOOL) != 0) {
bool bVal ;
LuaCheckParam( L, 2, bVal)
LuaClearStack( L) ;
bool bOk = ExeMdbSetCurrMachiningParam( nType, bVal) ;
LuaSetParam( L, bOk) ;
}
else if ( ( nType & TPA_INT) != 0) {
int nVal ;
LuaCheckParam( L, 2, nVal)
LuaClearStack( L) ;
bool bOk = ExeMdbSetCurrMachiningParam( nType, nVal) ;
LuaSetParam( L, bOk) ;
}
else if ( ( nType & TPA_DOU) != 0) {
double dVal ;
LuaCheckParam( L, 2, dVal)
LuaClearStack( L) ;
bool bOk = ExeMdbSetCurrMachiningParam( nType, dVal) ;
LuaSetParam( L, bOk) ;
}
else if ( ( nType & TPA_STR) != 0) {
string sVal ;
LuaCheckParam( L, 2, sVal)
LuaClearStack( L) ;
bool bOk = ExeMdbSetCurrMachiningParam( nType, sVal) ;
LuaSetParam( L, bOk) ;
}
else
LuaSetParam( L, false) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbGetCurrMachiningParam( lua_State* L)
{
// 1 parametr : nType
int nType ;
LuaCheckParam( L, 1, nType)
LuaClearStack( L) ;
// recupero il parametro dell'utensile voluto
if ( ( nType & TPA_BOOL) != 0) {
bool bVal ;
bool bOk = ExeMdbGetCurrMachiningParam( nType, bVal) ;
if ( bOk)
LuaSetParam( L, bVal) ;
else
LuaSetParam( L) ;
}
else if ( ( nType & TPA_INT) != 0) {
int nVal ;
bool bOk = ExeMdbGetCurrMachiningParam( nType, nVal) ;
if ( bOk)
LuaSetParam( L, nVal) ;
else
LuaSetParam( L) ;
}
else if ( ( nType & TPA_DOU) != 0) {
double dVal ;
bool bOk = ExeMdbGetCurrMachiningParam( nType, dVal) ;
if ( bOk)
LuaSetParam( L, dVal) ;
else
LuaSetParam( L) ;
}
else if ( ( nType & TPA_STR) != 0) {
string sVal ;
bool bOk = ExeMdbGetCurrMachiningParam( nType, sVal) ;
if ( bOk)
LuaSetParam( L, sVal) ;
else
LuaSetParam( L) ;
}
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbSaveCurrMachining( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// salvo la lavorazione corrente
bool bOk = ExeMdbSaveCurrMachining() ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbIsCurrMachiningModified( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// verifico se la lavorazione corrente è stata modificata
bool bOk = ExeMdbIsCurrMachiningModified() ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaMdbSave( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// lancio salvataggio
bool bOk = ExeMdbSave() ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
// Operations
//-------------------------------------------------------------------------------
static int
LuaGetFirstOperation( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// recupero la prima operazione della macchinata corrente
int nId = ExeGetFirstOperation() ;
// restituisco il risultato
if ( nId != GDB_ID_NULL)
LuaSetParam( L, nId) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetNextOperation( lua_State* L)
{
// 1 parametro : nId
int nId ;
LuaCheckParam( L, 1, nId)
LuaClearStack( L) ;
// recupero la prima operazione della macchinata corrente
int nNextId = ExeGetNextOperation( nId) ;
// restituisco il risultato
if ( nNextId != GDB_ID_NULL)
LuaSetParam( L, nNextId) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetOperationType( lua_State* L)
{
// 1 parametro : nId
int nId ;
LuaCheckParam( L, 1, nId)
LuaClearStack( L) ;
// recupero la prima operazione della macchinata corrente
int nType = ExeGetOperationType( nId) ;
// restituisco il risultato
LuaSetParam( L, nType) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaRemoveAllOperations( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// elimino tutte le operazioni della macchinata corrente
bool bOk = ExeRemoveAllOperations() ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
// Machinings
//-------------------------------------------------------------------------------
static int
LuaAddMachining( lua_State* L)
@@ -917,67 +1246,7 @@ LuaApplyMachining( lua_State* L)
}
//-------------------------------------------------------------------------------
static int
LuaGetFirstOperation( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// recupero la prima operazione della macchinata corrente
int nId = ExeGetFirstOperation() ;
// restituisco il risultato
if ( nId != GDB_ID_NULL)
LuaSetParam( L, nId) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetNextOperation( lua_State* L)
{
// 1 parametro : nId
int nId ;
LuaCheckParam( L, 1, nId)
LuaClearStack( L) ;
// recupero la prima operazione della macchinata corrente
int nNextId = ExeGetNextOperation( nId) ;
// restituisco il risultato
if ( nNextId != GDB_ID_NULL)
LuaSetParam( L, nNextId) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetOperationType( lua_State* L)
{
// 1 parametro : nId
int nId ;
LuaCheckParam( L, 1, nId)
LuaClearStack( L) ;
// recupero la prima operazione della macchinata corrente
int nType = ExeGetOperationType( nId) ;
// restituisco il risultato
LuaSetParam( L, nType) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaRemoveAllOperations( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// elimino tutte le operazioni della macchinata corrente
bool bOk = ExeRemoveAllOperations() ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
// Simulation
//-------------------------------------------------------------------------------
static int
LuaSimStart( lua_State* L)
@@ -1045,6 +1314,8 @@ LuaSimStop( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
// Generation
//-------------------------------------------------------------------------------
static int
LuaGenerate( lua_State* L)
@@ -1060,6 +1331,8 @@ LuaGenerate( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
// Machine Calc
//-------------------------------------------------------------------------------
static int
LuaSetCalcTable( lua_State* L)
@@ -1201,6 +1474,8 @@ LuaVerifyOutOfStroke( lua_State* L)
}
}
//-------------------------------------------------------------------------------
// Machine Move
//-------------------------------------------------------------------------------
static int
LuaSetAxisPos( lua_State* L)
@@ -1361,7 +1636,18 @@ LuaInstallMachMgr( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbGetCurrToolParam", LuaTdbGetCurrToolParam) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbSave", LuaTdbSave) ;
// Machinings database
// ...
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbGetMachiningNewName", LuaMdbGetMachiningNewName) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbAddMachining", LuaMdbAddMachining) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbCopyMachining", LuaMdbCopyMachining) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbRemoveMachining", LuaMdbRemoveMachining) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbGetFirstMachining", LuaMdbGetFirstMachining) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbGetNextMachining", LuaMdbGetNextMachining) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbSetCurrMachining", LuaMdbSetCurrMachining) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbSaveCurrMachining", LuaMdbSaveCurrMachining) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbIsCurrMachiningModified", LuaMdbIsCurrMachiningModified) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbSetCurrMachiningParam", LuaMdbSetCurrMachiningParam) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbGetCurrMachiningParam", LuaMdbGetCurrMachiningParam) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMdbSave", LuaMdbSave) ;
// Operations
bOk = bOk && luaMgr.RegisterFunction( "EgtGetFirstOperation", LuaGetFirstOperation) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetNextOperation", LuaGetNextOperation) ;