EgtGeomKernel 1.5d5 :
- aggiunta scrittura binaria - tolte GetKey, Load e Save da interfaccia IGeoObj.
This commit is contained in:
+10
-3
@@ -1875,11 +1875,18 @@ GdbExecutor::ExecuteLoad( const std::string& sCmd2, const STRVECTOR& vsParams)
|
||||
bool
|
||||
GdbExecutor::ExecuteSave( const std::string& sCmd2, const STRVECTOR& vsParams)
|
||||
{
|
||||
// 1 parametro ( NomeFile)
|
||||
if ( vsParams.size() != 1)
|
||||
// almeno 1 parametro ( NomeFile)
|
||||
if ( vsParams.size() < 1)
|
||||
return false ;
|
||||
// il secondo parametro, opzionale, indica il formato del file
|
||||
bool bBinary = false ;
|
||||
if ( vsParams.size() == 2) {
|
||||
string sBinary = vsParams[1] ;
|
||||
ToUpper( sBinary) ;
|
||||
bBinary = ( sBinary == "B" || sBinary == "BINARY") ;
|
||||
}
|
||||
// esecuzione salvataggio
|
||||
return m_pGDB->Save( vsParams[0]) ;
|
||||
return m_pGDB->Save( vsParams[0], bBinary) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user