EgtMachKernel :

- aggiunta in interfaccia funzione ExistsCurrSetup.
This commit is contained in:
Dario Sassi
2025-12-11 08:50:20 +01:00
parent 46aa62244c
commit 2973f3f627
2 changed files with 14 additions and 6 deletions
+4 -3
View File
@@ -214,10 +214,11 @@ class MachMgr : public IMachMgr
int GetCurrSetup( void) const override ; int GetCurrSetup( void) const override ;
bool GetDefaultSetupName( std::string& sName) const override ; bool GetDefaultSetupName( std::string& sName) const override ;
bool ImportSetup( const std::string& sName) override ; bool ImportSetup( const std::string& sName) override ;
bool ExistsCurrSetup( void) const override ;
bool VerifyCurrSetup( STRVECTOR& vsErrors) override ; bool VerifyCurrSetup( STRVECTOR& vsErrors) override ;
bool FindToolInCurrSetup( const std::string& sTool) override ; bool FindToolInCurrSetup( const std::string& sTool) const override ;
bool GetToolSetupPosInCurrSetup( const std::string& sTool, std::string& sTcPos) override ; bool GetToolSetupPosInCurrSetup( const std::string& sTool, std::string& sTcPos) const override ;
bool GetToolsInCurrSetupPos( const std::string& sTcPos, STRVECTOR& vsTools) override ; bool GetToolsInCurrSetupPos( const std::string& sTcPos, STRVECTOR& vsTools) const override ;
bool UpdateCurrSetup( void) override ; bool UpdateCurrSetup( void) override ;
bool EraseCurrSetup( void) override ; bool EraseCurrSetup( void) override ;
// Machinings DataBase // Machinings DataBase
+10 -3
View File
@@ -71,6 +71,13 @@ MachMgr::ImportSetup( const string& sName)
return m_stuMgr.Save() ; return m_stuMgr.Save() ;
} }
//----------------------------------------------------------------------------
bool
MachMgr::ExistsCurrSetup( void) const
{
return m_stuMgr.Exists() ;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
bool bool
MachMgr::VerifyCurrSetup( STRVECTOR& vsErrors) MachMgr::VerifyCurrSetup( STRVECTOR& vsErrors)
@@ -125,21 +132,21 @@ MachMgr::VerifyCurrSetup( STRVECTOR& vsErrors)
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
bool bool
MachMgr::FindToolInCurrSetup( const string& sTool) MachMgr::FindToolInCurrSetup( const string& sTool) const
{ {
return m_stuMgr.FindTool( sTool) ; return m_stuMgr.FindTool( sTool) ;
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
bool bool
MachMgr::GetToolSetupPosInCurrSetup( const string& sTool, string& sTcPos) MachMgr::GetToolSetupPosInCurrSetup( const string& sTool, string& sTcPos) const
{ {
return m_stuMgr.GetToolSetupPos( sTool, sTcPos) ; return m_stuMgr.GetToolSetupPos( sTool, sTcPos) ;
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
bool bool
MachMgr::GetToolsInCurrSetupPos( const string& sTcPos, STRVECTOR& vsTools) MachMgr::GetToolsInCurrSetupPos( const string& sTcPos, STRVECTOR& vsTools) const
{ {
return m_stuMgr.GetToolsInSetupPos( sTcPos, vsTools) ; return m_stuMgr.GetToolsInSetupPos( sTcPos, vsTools) ;
} }