EgtInterface 1.5i5 :
- aggiunto interprete Lua - portate in interfaccia API molte funzioni di base.
This commit is contained in:
+16
-2
@@ -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) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user