EgtMachKernel 1.8b4 :
- aggiunta funzione GetMachGroupMachineName.
This commit is contained in:
Binary file not shown.
@@ -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 ;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user