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 89e026a..c18c568 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ