EgtMachKernel 1.6x6 :

- aggiunta MachMgr::GetHeadExitCount.
This commit is contained in:
Dario Sassi
2017-01-11 17:20:08 +00:00
parent bf0aa61f9e
commit bd8a08bce9
8 changed files with 39 additions and 10 deletions
+9
View File
@@ -15,6 +15,7 @@
#include "stdafx.h"
#include "MachMgr.h"
#include "DllMain.h"
#include "Head.h"
#include "Exit.h"
#include "/EgtDev/Include/EMkToolConst.h"
#include "/EgtDev/Include/EGnStringUtils.h"
@@ -22,6 +23,14 @@
using namespace std ;
//----------------------------------------------------------------------------
int
Machine::GetHeadExitCount( const string& sHead) const
{
Head* pHead = GetHead( GetGroup( sHead)) ;
return ( ( pHead != nullptr) ? pHead->GetExitCount() : 0) ;
}
//----------------------------------------------------------------------------
bool
Machine::LoadTool( const string& sHead, int nExit, const string& sTool)