EgtMachKernel 1.8g4 :
- aggiunte funzioni GetLastMachGroup e GetPrevMachGroup.
This commit is contained in:
@@ -61,6 +61,33 @@ MachMgr::GetNextMachGroup( int nId) const
|
||||
return nNextId ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int
|
||||
MachMgr::GetLastMachGroup( void) const
|
||||
{
|
||||
// verifica del gruppo base per le lavorazioni
|
||||
if ( ! VerifyMachBase())
|
||||
return GDB_ID_NULL ;
|
||||
// recupero l'ultimo sottogruppo
|
||||
int nId = m_pGeomDB->GetLastGroupInGroup( m_nMachBaseId) ;
|
||||
return nId ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int
|
||||
MachMgr::GetPrevMachGroup( int nId) const
|
||||
{
|
||||
// verifica del gruppo base per le lavorazioni
|
||||
if ( ! VerifyMachBase())
|
||||
return GDB_ID_NULL ;
|
||||
// verifico che il gruppo ricevuto sia corretto
|
||||
if ( m_pGeomDB->GetParentId( nId) != m_nMachBaseId)
|
||||
return GDB_ID_NULL ;
|
||||
// recupero il precedente sottogruppo
|
||||
int nNextId = m_pGeomDB->GetPrevGroup( nId) ;
|
||||
return nNextId ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::GetMachGroupNewName( string& sName) const
|
||||
|
||||
Reference in New Issue
Block a user