EgtMachKernel :
- aggiunta gestione della proprietà Active sugli utensili.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "/EgtDev/Include/EMkToolConst.h"
|
||||
#include "/EgtDev/Include/EGkGeoConst.h"
|
||||
#include "/EgtDev/Include/EGnStringUtils.h"
|
||||
#include "/EgtDEv/Include/EGnStringKeyVal.h"
|
||||
#include "/EgtDev/Include/EGnEgtUUID.h"
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
@@ -261,6 +262,10 @@ ToolData::VerifySpeed( double dVal) const
|
||||
bool
|
||||
ToolData::SetParam( int nType, bool bVal)
|
||||
{
|
||||
switch ( nType) {
|
||||
case TPA_ACTIVE :
|
||||
return SetValInNotes( TSI_ACTIVE, bVal, m_sSysNotes) ;
|
||||
}
|
||||
return false ;
|
||||
}
|
||||
|
||||
@@ -385,6 +390,10 @@ ToolData::SetParam( int nType, const string& sVal)
|
||||
bool
|
||||
ToolData::GetParam( int nType, bool& bVal) const
|
||||
{
|
||||
switch ( nType) {
|
||||
case TPA_ACTIVE :
|
||||
return GetValInNotes( m_sSysNotes, TSI_ACTIVE, bVal) ;
|
||||
}
|
||||
bVal = false ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user