EgtMachKernel :

- aggiunta gestione della proprietà Active sugli utensili.
This commit is contained in:
Dario Sassi
2019-09-19 13:47:30 +00:00
parent 632e8df55d
commit 2484fededb
+9
View File
@@ -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 ;
}