EgtMachKernel :

- aggiunte funzioni per restituire dati ultimo errore.
This commit is contained in:
Dario Sassi
2017-02-04 18:41:21 +00:00
parent 363ada2528
commit f41576938f
4 changed files with 102 additions and 58 deletions
+12
View File
@@ -43,6 +43,7 @@ MachMgr::MachMgr( void)
{
m_nContextId = 0 ;
m_pGeomDB = nullptr ;
m_nLastError = 0 ;
m_nMachBaseId = GDB_ID_NULL ;
m_nMachAuxId = GDB_ID_NULL ;
m_nCurrMGrpId = GDB_ID_NULL ;
@@ -287,3 +288,14 @@ MachMgr::CreateMachAux( void)
m_pGeomDB->SetLevel( m_nMachAuxId, GDB_LV_TEMP) ;
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::SetLastError( int nErr, const string& sErr)
{
m_nLastError = nErr ;
m_sLastError = sErr ;
string sInfo = m_sLastError + " (" + ToString( nErr) + ")" ;
LOG_INFO( GetEMkLogger(), sInfo.c_str()) ;
return true ;
}