EgtExecutor 1.6k6 :

- aggiunta funzione per gestione info e posizione assi in simulazione
- aggiunta gestione callback per output testi.
This commit is contained in:
Dario Sassi
2015-11-16 08:17:46 +00:00
parent bd531c8519
commit 18db0cb9c9
6 changed files with 102 additions and 3 deletions
+19
View File
@@ -40,6 +40,7 @@ static bool s_bCmdLog = false ;
static Logger* s_pCmdLog = nullptr ;
static string s_sKey ;
static pfProcEvents s_pFunProcEvents = nullptr ;
static pfOutText s_pFunOutText = nullptr ;
//-----------------------------------------------------------------------------
bool
@@ -335,6 +336,14 @@ ExeSetProcessEvents( pfProcEvents pFun)
return ( pFun != nullptr) ;
}
//-----------------------------------------------------------------------------
bool
ExeSetOutText( pfOutText pFun)
{
s_pFunOutText = pFun ;
return ( pFun != nullptr) ;
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
@@ -376,3 +385,13 @@ ProcessEvents( int nProg, int nPause)
else
return 0 ;
}
//-----------------------------------------------------------------------------
bool
OutText( const string& sText)
{
if ( s_pFunOutText != nullptr)
return s_pFunOutText( sText) ;
else
return false ;
}