EgtGeomKernel 1.4a1 : gli oggetti non hanno più un nome ma un Id.

This commit is contained in:
Dario Sassi
2013-11-28 07:46:29 +00:00
parent cc2db726db
commit bf3e8b5ff9
7 changed files with 147 additions and 89 deletions
+5 -4
View File
@@ -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) ;