EgtInterface 2.2k1 :

- aggiunta interfaccia per funzioni nesting 1D ( EgtMaxFillerStart, EgtMaxFillerAddPart, EgtMaxFillerCompute, EgtMaxFillerGetResults, EgtMaxFillerGetOneResult).
This commit is contained in:
Dario Sassi
2020-11-06 12:15:17 +00:00
parent 3fb2e6bf4e
commit 5e5ab88cc5
4 changed files with 63 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
//----------------------------------------------------------------------------
// EgalTech 2020-2020
//----------------------------------------------------------------------------
// File : API_MaxFiller.cpp Data : 06.11.20 Versione : 2.2k1
// Contenuto : Funzioni nesting per API.
//
//
//
// Modifiche : 31.07.15 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
//--------------------------- Include ----------------------------------------
#include "stdafx.h"
#include "API.h"
#include "/EgtDev/Include/EInAPI.h"
#include "/EgtDev/Include/EXeExecutor.h"
using namespace std ;
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerStart( void)
{
return ( ExeMaxFillerStart() ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerAddPart( int nPartId, double dLen, double dDispLen, int nCount)
{
return ( ExeMaxFillerAddPart( nPartId, dLen, dDispLen, nCount) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerCompute( double dLenToFill, double dStartGap, double dMidGap, double dEndGap, int nSortType)
{
return ( ExeMaxFillerCompute( dLenToFill, dStartGap, dMidGap, dEndGap, nSortType) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerGetResults( int* pnFilledParts, int* pnDiffParts, double* pdTotFillRatio)
{
if ( pnFilledParts == nullptr || pnDiffParts == nullptr || pdTotFillRatio == nullptr)
return false ;
return ( ExeMaxFillerGetResults( *pnFilledParts, *pnDiffParts, *pdTotFillRatio) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerGetOneResult( int nInd, int* pnPartId, int* pnCount)
{
if ( pnPartId == nullptr || pnCount == nullptr)
return false ;
return ( ExeMaxFillerGetOneResult( nInd, *pnPartId, *pnCount) ? TRUE : FALSE) ;
}