From 2484fededbd42f0c2b8c4b139ed82cd9160e96a4 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 19 Sep 2019 13:47:30 +0000 Subject: [PATCH] =?UTF-8?q?EgtMachKernel=20:=20-=20aggiunta=20gestione=20d?= =?UTF-8?q?ella=20propriet=C3=A0=20Active=20sugli=20utensili.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ToolData.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ToolData.cpp b/ToolData.cpp index 443cd4d..143d743 100644 --- a/ToolData.cpp +++ b/ToolData.cpp @@ -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 #include @@ -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 ; }