//---------------------------------------------------------------------------- // 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) ; }