From 5e5ab88cc5481a927b948cae0dd30133b70d2b5f Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 6 Nov 2020 12:15:17 +0000 Subject: [PATCH] EgtInterface 2.2k1 : - aggiunta interfaccia per funzioni nesting 1D ( EgtMaxFillerStart, EgtMaxFillerAddPart, EgtMaxFillerCompute, EgtMaxFillerGetResults, EgtMaxFillerGetOneResult). --- API_MaxFiller.cpp | 59 +++++++++++++++++++++++++++++++++++ EgtInterface.rc | Bin 11726 -> 11726 bytes EgtInterface.vcxproj | 1 + EgtInterface.vcxproj.filters | 3 ++ 4 files changed, 63 insertions(+) create mode 100644 API_MaxFiller.cpp diff --git a/API_MaxFiller.cpp b/API_MaxFiller.cpp new file mode 100644 index 0000000..c64d0c6 --- /dev/null +++ b/API_MaxFiller.cpp @@ -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) ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index 46dfff3f8af83725354955d4bb899da5d93db842..92b7e918593d1f8b504fa5762c109fbf664f4243 100644 GIT binary patch delta 121 zcmX>XeJ*;#4>m@_%^&&BGEH73DKPmOXAW~VgW=?loVt^}lq@#)Nl7toKEkcT3|8dI n43pgKrR2r9d4n)i0<60RCJEK)#sb!KlWFogMYyRzjV;^&iU=x^ delta 121 zcmX>XeJ*;#4>m@F%^&&BGEH73DKPmOXAW}~gW=?loVt^}lq@#)Nl7toKEkcT3|8dI n43pgKrR2r9d4n)i0<60RCJEK)#sb!KlWFogMYyRzjV;^&h$bqD diff --git a/EgtInterface.vcxproj b/EgtInterface.vcxproj index ca14d08..b78fac4 100644 --- a/EgtInterface.vcxproj +++ b/EgtInterface.vcxproj @@ -238,6 +238,7 @@ copy $(TargetPath) \EgtProg\Dll64 + diff --git a/EgtInterface.vcxproj.filters b/EgtInterface.vcxproj.filters index 9001f93..c7b95d8 100644 --- a/EgtInterface.vcxproj.filters +++ b/EgtInterface.vcxproj.filters @@ -143,6 +143,9 @@ File di origine\API + + File di origine\API +