EgtInterface 2.3b1 :

- aggiunte interfacce per funzioni Duplo.
This commit is contained in:
Dario Sassi
2021-02-08 08:43:49 +00:00
parent 1cda7a5253
commit b2b221e95f
2 changed files with 66 additions and 0 deletions
+66
View File
@@ -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) ;
}