EgtGeomKernel 1.4a1 : gli oggetti non hanno più un nome ma un Id.
This commit is contained in:
+5
-4
@@ -71,7 +71,7 @@ GdbObj::Save( std::ostream& osOut) const
|
||||
// tipo entità
|
||||
osOut << m_pGeoObj->GetKey() << endl ;
|
||||
// nome
|
||||
osOut << m_sName << endl ;
|
||||
osOut << m_nId << endl ;
|
||||
// parametri geometrici
|
||||
return m_pGeoObj->Save( osOut) ;
|
||||
|
||||
@@ -107,11 +107,12 @@ GdbObj::Load( CScan& TheScanner, string& sErrLine)
|
||||
return false ;
|
||||
// la divido in parametri
|
||||
Tokenize( sLine, ",", vsParams) ;
|
||||
// 1 parametro : nome
|
||||
// 1 parametro : Id
|
||||
if ( vsParams.size() != 1)
|
||||
return false ;
|
||||
// assegno il nome
|
||||
m_sName = vsParams[0] ;
|
||||
// assegno l'identificativo
|
||||
if ( ! FromString( vsParams[0], m_nId))
|
||||
return false ;
|
||||
|
||||
// parametri geometrici
|
||||
return m_pGeoObj->Load( TheScanner) ;
|
||||
|
||||
Reference in New Issue
Block a user