EgtMachKernel :
- aggiunte funzioni per restituire dati ultimo errore.
This commit is contained in:
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user