From b2b221e95f22a51323244550ebd0870120b21ed4 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 8 Feb 2021 08:43:49 +0000 Subject: [PATCH] EgtInterface 2.3b1 : - aggiunte interfacce per funzioni Duplo. --- API_GdbPartLayers.cpp | 66 ++++++++++++++++++++++++++++++++++++++++++ EgtInterface.rc | Bin 11718 -> 11718 bytes 2 files changed, 66 insertions(+) diff --git a/API_GdbPartLayers.cpp b/API_GdbPartLayers.cpp index 75dc357..88b4129 100644 --- a/API_GdbPartLayers.cpp +++ b/API_GdbPartLayers.cpp @@ -179,3 +179,69 @@ __stdcall EgtSelectPathObjs( int nId, BOOL bHaltOnFork) { return ( ExeSelectPathObjs( nId, ( bHaltOnFork != FALSE)) ? TRUE : FALSE) ; } + +//----------------------------------------------------------------------------- +int +__stdcall EgtDuploNew( int nSouId) +{ + return ExeDuploNew( nSouId) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtDuploCount( int nSouId, int* pnCount) +{ + if ( pnCount == nullptr) + return FALSE ; + return ( ExeDuploCount( nSouId, *pnCount) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtDuploList( int nSouId, int*& vInd, int* pnCount) +{ + INTVECTOR vnRef ; + if ( ! ExeDuploList( nSouId, vnRef)) + return FALSE ; + int nDim = int( vnRef.size()) ; + if ( nDim == 0) { + vInd = nullptr ; + } + else { + vInd = (int*) malloc( nDim * sizeof( int)) ; + if ( vInd == nullptr) + return false ; + for ( int i = 0 ; i < nDim ; ++ i) + vInd[i] = vnRef[i] ; + } + *pnCount = nDim ; + return TRUE ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtDuploSetModified( int nSouId) +{ + return ( ExeDuploSetModified( nSouId) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtDuploUpdate( int nSouId) +{ + return ( ExeDuploUpdate( nSouId) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtIsDuplo( int nDupId) +{ + return ( ExeIsDuplo( nDupId) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +int +__stdcall EgtDuploGetOriginal( int nDupId) +{ + return ExeDuploGetOriginal( nDupId) ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index 89e026a50029ac04a7694e62e93918b3ac2c7f09..c18c56858a126c9a3f61efc0cfbfc453a1ce6452 100644 GIT binary patch delta 135 zcmX>WeJpyzH#Sxy1|0^&%^&$rGEF|hS;L&fU^w}qpzh`Zt{N7&oFg+#d~yMo#bg5> joym8&o@`zvtiudf1Ju7n5}`jp3aWeJpyzH#Sy71|0_D%^&$rGEF|hS;L&jU_AMupzh`Zt{N7&oFg+#d~yMo#bg5> joym8&o@`zvtiudf1Ju7n5}`jp3a