EgtInterface 2.3b1 :
- aggiunte interfacce per funzioni Duplo.
This commit is contained in:
@@ -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) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user