EgtExecutor 1.6k6 :
- aggiunta funzione per gestione info e posizione assi in simulazione - aggiunta gestione callback per output testi.
This commit is contained in:
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user