EgtMachKernel 2.2b4 :
- cambiata UpdateSetup in UpdateCurrSetup - aggiunta EraseCurrSetup.
This commit is contained in:
Binary file not shown.
@@ -183,7 +183,8 @@ class MachMgr : public IMachMgr
|
||||
bool ImportSetup( const std::string& sName) override ;
|
||||
bool VerifyCurrSetup( STRVECTOR& vsErrors) override ;
|
||||
bool FindToolInCurrSetup( const std::string& sTool) override ;
|
||||
bool UpdateSetup( void) override ;
|
||||
bool UpdateCurrSetup( void) override ;
|
||||
bool EraseCurrSetup( void) override ;
|
||||
// Machinings DataBase
|
||||
bool MdbGetMachiningNewName( std::string& sName) const override ;
|
||||
bool MdbAddMachining( const std::string& sName, int nType) ;
|
||||
|
||||
@@ -172,7 +172,7 @@ MachMgr::AddMachGroup( const string& sName, const string& sMachineName)
|
||||
pMch->ResetCurrTool() ;
|
||||
}
|
||||
// aggiorno attrezzaggio attivo
|
||||
UpdateSetup() ;
|
||||
UpdateCurrSetup() ;
|
||||
// nascondo i pezzi rimasti sotto la radice
|
||||
ShowRootParts( false) ;
|
||||
// rendo visibile il nuovo gruppo corrente e la relativa macchina
|
||||
@@ -326,7 +326,7 @@ MachMgr::SetCurrMachGroup( int nId)
|
||||
if ( ! PrepareCurrMachGroup( nId))
|
||||
return false ;
|
||||
// aggiorno attrezzaggio attivo
|
||||
UpdateSetup() ;
|
||||
UpdateCurrSetup() ;
|
||||
// imposto la prima fase come corrente
|
||||
if ( ! SetCurrPhase( 1))
|
||||
return false ;
|
||||
|
||||
+12
-1
@@ -121,7 +121,7 @@ MachMgr::FindToolInCurrSetup( const string& sTool)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::UpdateSetup( void)
|
||||
MachMgr::UpdateCurrSetup( void)
|
||||
{
|
||||
// aggiorno attrezzaggio
|
||||
if ( ! m_stuMgr.Load())
|
||||
@@ -132,3 +132,14 @@ MachMgr::UpdateSetup( void)
|
||||
return false ;
|
||||
return pMch->LoadAllTools() ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::EraseCurrSetup( void)
|
||||
{
|
||||
// pulisco attrezzaggio
|
||||
if ( ! m_stuMgr.Clear())
|
||||
return false ;
|
||||
// salvo i dati
|
||||
return m_stuMgr.Save() ;
|
||||
}
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ Processor::Run( const string& sOutFile, const string& sInfo)
|
||||
m_pMchMgr->ResetWarnings() ;
|
||||
|
||||
// forzo aggiornamento attrezzaggio della macchinata
|
||||
m_pMchMgr->UpdateSetup() ;
|
||||
m_pMchMgr->UpdateCurrSetup() ;
|
||||
if ( ! VerifySetup())
|
||||
return false ;
|
||||
|
||||
|
||||
@@ -55,6 +55,14 @@ SetupMgr::Reset( void)
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SetupMgr::Clear( void)
|
||||
{
|
||||
m_vStuData.clear() ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SetupMgr::Load( void)
|
||||
|
||||
@@ -41,6 +41,7 @@ class SetupMgr
|
||||
SetupMgr( void) ;
|
||||
bool Init( MachMgr* pMchMgr) ;
|
||||
bool Reset( void) ;
|
||||
bool Clear( void) ;
|
||||
bool Load( void) ;
|
||||
bool Save( void) const ;
|
||||
bool Import( const std::string& sFileName) ;
|
||||
|
||||
+1
-1
@@ -112,7 +112,7 @@ Simulator::Start( bool bFirst)
|
||||
m_pMchMgr->ResetWarnings() ;
|
||||
|
||||
// Forzo aggiornamento attrezzaggio della macchinata
|
||||
bool bOk = m_pMchMgr->UpdateSetup() ;
|
||||
bool bOk = m_pMchMgr->UpdateCurrSetup() ;
|
||||
|
||||
// Se avvio vero, verifico attrezzaggio
|
||||
if ( bFirst && ! VerifySetup())
|
||||
|
||||
Reference in New Issue
Block a user