EgtMachKernel 1.9k1 :

- nel generatore e estimatore aggiunta variabile EMT.SPLITARCS con info spezzatura archi
- in svuotature migliorata gestione lati aperti con pulizia transizioni chiuso-aperto.
This commit is contained in:
Dario Sassi
2018-11-15 18:38:27 +00:00
parent a111ddbd7f
commit 9c33e2f4fc
6 changed files with 86 additions and 10 deletions
+20 -2
View File
@@ -204,14 +204,32 @@ MachMgr::GetOperationNewName( string& sName) const
}
//----------------------------------------------------------------------------
std::string
bool
MachMgr::SetOperationName( int nId, const string& sName)
{
// recupero l'operazione
PtrOwner<IGdbIterator> pIter( CreateGdbIterator( m_pGeomDB)) ;
if ( IsNull( pIter) || ! pIter->GoTo( nId))
return false ;
// verifico che faccia parte del gruppo delle operazioni
if ( pIter->GetParentId() != GetCurrOperId())
return false ;
// verifico che il nome non sia già usato da una operazione
if ( GetOperationId( sName) != GDB_ID_NULL)
return false ;
// assegno il nome
return pIter->SetName( sName) ;
}
//----------------------------------------------------------------------------
string
MachMgr::GetOperationName( int nId) const
{
// recupero l'operazione
PtrOwner<IGdbIterator> pIter( CreateGdbIterator( m_pGeomDB)) ;
if ( IsNull( pIter) || ! pIter->GoTo( nId))
return 0 ;
// verifico che il gruppo ricevuto sia corretto
// verifico che faccia parte del gruppo delle operazioni
if ( pIter->GetParentId() != GetCurrOperId())
return 0 ;
// recupero il nome dell'operazione riferita