EgtGeomKernel :
- cambiato Load, con uso di NgeReader.
This commit is contained in:
+3
-8
@@ -16,6 +16,7 @@
|
||||
#include "GeoFrame3d.h"
|
||||
#include "GeoObjFactory.h"
|
||||
#include "NgeWriter.h"
|
||||
#include "NgeReader.h"
|
||||
#include "/EgtDev/Include/EGkStringUtils3d.h"
|
||||
#include "/EgtDev/Include/EGkPolyLine.h"
|
||||
#include <new>
|
||||
@@ -139,18 +140,12 @@ GeoFrame3d::Save( NgeWriter& ngeOut) const
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeoFrame3d::Load( Scanner& TheScanner)
|
||||
GeoFrame3d::Load( NgeReader& ngeIn)
|
||||
{
|
||||
// imposto ricalcolo della grafica
|
||||
m_OGrMgr.Reset() ;
|
||||
// leggo la prossima linea
|
||||
string sLine ;
|
||||
if ( ! TheScanner.GetLine( sLine))
|
||||
return false ;
|
||||
// elimino ; finale
|
||||
TrimRight( sLine, ";") ;
|
||||
// eseguo lettura
|
||||
return FromString( sLine, m_frF) ;
|
||||
return ngeIn.ReadFrame( m_frF, ";", true) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user