EgtInterface 1.5k3 :

- esposte ulteriori funzionalità.
This commit is contained in:
Dario Sassi
2014-11-21 17:46:17 +00:00
parent 73c8bd68b0
commit 4661bb7c66
13 changed files with 629 additions and 276 deletions
+8 -8
View File
@@ -99,33 +99,33 @@ __stdcall EgtNewFile( void)
BOOL
__stdcall EgtOpenFile( const wchar_t* wsFilePath)
{
return EgtOpenFile( wstrztoA( wsFilePath)) ;
return ( EgtOpenFile( wstrztoA( wsFilePath)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
bool
__stdcall EgtOpenFile( const string& sFilePath)
{
// reinizializzazione (con pulizia) del DB geometrico
if ( ! EgtNewFile())
return FALSE ;
return false ;
// carico il file
return ( GetCurrGeomDB()->Load( sFilePath) ? TRUE : FALSE) ;
return GetCurrGeomDB()->Load( sFilePath) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSaveFile( const wchar_t* wsFilePath, int nFlag)
{
return EgtSaveFile( wstrztoA( wsFilePath), nFlag) ;
return ( EgtSaveFile( wstrztoA( wsFilePath), nFlag) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
bool
__stdcall EgtSaveFile( const string& sFilePath, int nFlag)
{
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
VERIFY_GEOMDB( pGeomDB, false)
// salvo il file
return ( pGeomDB->Save( sFilePath, nFlag) ? TRUE : FALSE) ;
return pGeomDB->Save( sFilePath, nFlag) ;
}