EgtInterface 1.5i5 :

- aggiunto interprete Lua
- portate in interfaccia API molte funzioni di base.
This commit is contained in:
Dario Sassi
2014-10-07 07:04:28 +00:00
parent 6735c79753
commit 50b2d271ac
31 changed files with 5816 additions and 42 deletions
+16 -2
View File
@@ -74,20 +74,34 @@ __stdcall EgtNewFile( int nGseCtx)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtOpenFile( int nGseCtx, const wchar_t* wsFilePath)
{
return EgtOpenFile( nGseCtx, wstrztoA( wsFilePath)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtOpenFile( int nGseCtx, const string& sFilePath)
{
// reinizializzazione (con pulizia) del DB geometrico
if ( ! EgtNewFile( nGseCtx))
return FALSE ;
// carico il file
return ( GetGeomDB( nGseCtx)->Load( wstrztoA( wsFilePath)) ? TRUE : FALSE) ;
return ( GetGeomDB( nGseCtx)->Load( sFilePath) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSaveFile( int nGseCtx, const wchar_t* wsFilePath, int nFlag)
{
return EgtSaveFile( nGseCtx, wstrztoA( wsFilePath), nFlag) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSaveFile( int nGseCtx, const string& sFilePath, int nFlag)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// salvo il file
return ( pGeomDB->Save( wstrztoA( wsFilePath), nFlag) ? TRUE : FALSE) ;
return ( pGeomDB->Save( sFilePath, nFlag) ? TRUE : FALSE) ;
}