EgtInterface 1.6b2 :

- razionalizzazione
- modificati comandi per creazione superfici per gestione piani di regioni con buchi
- aggiunta SplitCurve.
This commit is contained in:
Dario Sassi
2015-02-11 11:46:14 +00:00
parent 4e1dddee86
commit 1e24540dc1
15 changed files with 345 additions and 60 deletions
+14 -3
View File
@@ -37,7 +37,7 @@ static bool s_bCmdLog = false ;
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtInit( int nDebug, const wchar_t* sLogFile)
__stdcall EgtInit( int nDebug, const wchar_t* sLogFile, const wchar_t* sLogMsg)
{
// cancello eventuali vecchi contesti
ClearAllGseContexts() ;
@@ -59,6 +59,9 @@ __stdcall EgtInit( int nDebug, const wchar_t* sLogFile)
// dichiaro inizio programma
LOG_DATETIME( s_pGenLog, " Init")
// eventuale messaggio dall'applicazione
if ( sLogMsg != nullptr && sLogMsg[0] != L'\0')
LOG_INFO( s_pGenLog, LPSTR( WtoA( sLogMsg)))
// versione dell'interfaccia
LOG_INFO( s_pGenLog, GetEInVersion())
// versione delle librerie
@@ -180,14 +183,14 @@ __stdcall EgtSetCommandLogger( const wchar_t* sLogFile)
void
__stdcall EgtEnableCommandLogger( void)
{
s_bCmdLog = true ;
SetCmdLog( true) ;
}
//-----------------------------------------------------------------------------
void
__stdcall EgtDisableCommandLogger( void)
{
s_bCmdLog = false ;
SetCmdLog( false) ;
}
//-----------------------------------------------------------------------------
@@ -257,6 +260,14 @@ GetCmdLogger( void)
return s_pCmdLog ;
}
//-----------------------------------------------------------------------------
bool
SetCmdLog( bool bVal)
{
swap( bVal, s_bCmdLog) ;
return bVal ;
}
//-----------------------------------------------------------------------------
bool
IsCmdLog( void)