EgtMachKernel 1.8b4 :

- aggiunta funzione GetMachGroupMachineName.
This commit is contained in:
Dario Sassi
2017-02-16 11:30:14 +00:00
parent 91644356a6
commit 11df3f63f6
3 changed files with 17 additions and 0 deletions
BIN
View File
Binary file not shown.
+1
View File
@@ -84,6 +84,7 @@ class MachMgr : public IMachMgr
int AddMachGroup( const std::string& sName, const std::string& sMachineName) override ;
bool RemoveMachGroup( int nId) override ;
std::string GetMachGroupName( int nId) const override ;
std::string GetMachGroupMachineName( int nId) const override ;
int GetMachGroupId( const std::string& sName) const override ;
bool SetCurrMachGroup( int nId) override ;
bool ResetCurrMachGroup( void) override ;
+16
View File
@@ -241,6 +241,22 @@ MachMgr::GetMachGroupName( int nId) const
return sName ;
}
//----------------------------------------------------------------------------
string
MachMgr::GetMachGroupMachineName( int nId) const
{
// verifica del gruppo base per le lavorazioni
if ( ! VerifyMachBase())
return "" ;
// verifico che il gruppo ricevuto sia corretto
if ( m_pGeomDB->GetParentId( nId) != m_nMachBaseId)
return "" ;
// recupero il nome della macchina del gruppo riferito
string sName ;
m_pGeomDB->GetInfo( nId, MACH_MACHINE_KEY, sName) ;
return sName ;
}
//----------------------------------------------------------------------------
int
MachMgr::GetMachGroupId( const string& sName) const