EgtMachKernel 1.6k4 :

- aggiunte funzioni per direttorio utensili e portautensili.
This commit is contained in:
Dario Sassi
2015-11-11 10:44:44 +00:00
parent 831ea17e08
commit 2a7370bde8
5 changed files with 25 additions and 1 deletions
BIN
View File
Binary file not shown.
+2
View File
@@ -45,6 +45,8 @@ const std::string FIXTURES_DIR = "Fixtures" ;
//----------------------------------------------------------------------------
// Nome sottodirettorio degli utensili
const std::string TOOLS_DIR = "Tools" ;
// Nome sottodirettorio dei porta utensili
const std::string TOOLHOLDERS_DIR = "THolders" ;
// Nome file degli utensili
const std::string TOOLS_FILE = "Tools.data" ;
+2
View File
@@ -115,6 +115,8 @@ class MachMgr : public IMachMgr
virtual bool TdbGetCurrToolParam( int nType, double& dVal) const ;
virtual bool TdbGetCurrToolParam( int nType, std::string& sVal) const ;
virtual bool TdbSave( void) const ;
virtual bool TdbGetToolDir( std::string& sToolDir) const ;
virtual bool TdbGetToolHolderDir( std::string& sTHolderDir) const ;
// Machinings DataBase
// ...
// Operations : general
+1 -1
View File
@@ -47,7 +47,7 @@ MachMgr::LoadMachine( const string& sMachineName)
string sToolsFile = m_sMachinesDir + "\\" + sMachineName + "\\" + TOOLS_DIR + "\\" + TOOLS_FILE ;
if ( IsNull( pTsMgr) || ! pTsMgr->Load( sToolsFile))
return false ;
// creo e carico il DB lavorazioni
// creo e carico il DB lavorazioni
PtrOwner<MachiningsMgr> pMsMgr( new( nothrow) MachiningsMgr) ;
string sMachsFile = m_sMachinesDir + "\\" + sMachineName + "\\" + MACHININGS_DIR + "\\" + MACHININGS_FILE ;
if ( IsNull( pMsMgr) || ! pMsMgr->Init( sMachsFile) || ! pMsMgr->Load())
+20
View File
@@ -209,3 +209,23 @@ MachMgr::TdbSave( void) const
// salvo il db utensili
return pTsMgr->Save() ;
}
//----------------------------------------------------------------------------
bool
MachMgr::TdbGetToolDir( string& sToolDir) const
{
if ( GetCurrMachine() == nullptr)
return false ;
sToolDir = m_sMachinesDir + "\\" + GetCurrMachine()->GetMachineName() + "\\" + TOOLS_DIR ;
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::TdbGetToolHolderDir( string& sToolDir) const
{
if ( GetCurrMachine() == nullptr)
return false ;
sToolDir = m_sMachinesDir + "\\" + GetCurrMachine()->GetMachineName() + "\\" + TOOLHOLDERS_DIR ;
return true ;
}