EgtGeomKernel 1.5d5 :

- aggiunta scrittura binaria
- tolte GetKey, Load e Save da interfaccia IGeoObj.
This commit is contained in:
Dario Sassi
2014-04-14 15:57:58 +00:00
parent 39db15e41e
commit f956fd20cc
37 changed files with 829 additions and 198 deletions
+10 -3
View File
@@ -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) ;
}
//----------------------------------------------------------------------------