EgtInterface :

- aggiunte EgtMdbSetGeneralParam e ExeMdbGetGeneralParam per bool e int.
This commit is contained in:
Dario Sassi
2016-11-29 18:01:42 +00:00
parent 95eef30782
commit f7fd201905
+36
View File
@@ -846,6 +846,20 @@ __stdcall EgtMdbGetCurrMachiningParamString( int nType, wchar_t*& wsVal)
return (( wsVal == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMdbSetGeneralParamBool( int nType, BOOL bVal)
{
return ( ExeMdbSetGeneralParam( nType, bVal) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMdbSetGeneralParamInt( int nType, int nVal)
{
return ( ExeMdbSetGeneralParam( nType, nVal) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMdbSetGeneralParamDouble( int nType, double dVal)
@@ -853,6 +867,28 @@ __stdcall EgtMdbSetGeneralParamDouble( int nType, double dVal)
return ( ExeMdbSetGeneralParam( nType, dVal) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMdbGetGeneralParamBool( int nType, BOOL* pbVal)
{
if ( pbVal == nullptr)
return FALSE ;
bool bVal ;
if ( ! ExeMdbGetGeneralParam( nType, bVal))
return FALSE ;
*pbVal = ( bVal ? TRUE : FALSE) ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMdbGetGeneralParamInt( int nType, int* pnVal)
{
if ( pnVal == nullptr)
return FALSE ;
return ( ExeMdbGetGeneralParam( nType, *pnVal) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMdbGetGeneralParamDouble( int nType, double* pdVal)