EgtInterface 1.5k3 :
- esposte ulteriori funzionalità.
This commit is contained in:
+8
-8
@@ -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) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user