EgtGeomKernel 1.4l2 : Aggiunte ApproxWithLines su Curve Semplici.
This commit is contained in:
+5
-16
@@ -15,6 +15,7 @@
|
||||
#include "stdafx.h"
|
||||
#include "GeomDB.h"
|
||||
#include "GdbObj.h"
|
||||
#include "DllMain.h"
|
||||
#include "/EgtDev/Include/EgnStringUtils.h"
|
||||
#include "/EgtDev/Include/EgnStringConverter.h"
|
||||
#include "/EgtDev/Include/EgtPointerOwner.h"
|
||||
@@ -45,19 +46,7 @@ GeomDB::~GeomDB( void)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeomDB::Init( ILogger* pLogger)
|
||||
{
|
||||
m_pLogger = pLogger ;
|
||||
|
||||
// imposto numero minimo buckets del map degli Id
|
||||
m_IdManager.Init( 1024) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeomDB::ReInit( void)
|
||||
GeomDB::Init( void)
|
||||
{
|
||||
|
||||
// imposto numero minimo buckets del map degli Id
|
||||
@@ -90,14 +79,14 @@ GeomDB::Load( const std::string& sFileIn)
|
||||
|
||||
// inizializzo lo scanner
|
||||
if ( ! TheScanner.Init( sFileIn)) {
|
||||
LOG_ERROR( m_pLogger, "GeomDbLoad : Error on Init ") ;
|
||||
LOG_ERROR( GetEGkLogger(), "GeomDbLoad : Error on Init ") ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
// leggo l'intestazione
|
||||
if ( ! LoadStart( TheScanner)) {
|
||||
string sOut = "GeomDbLoad : Error on line " + ToString( TheScanner.GetCurrLineNbr()) ;
|
||||
LOG_ERROR( m_pLogger, sOut.c_str()) ;
|
||||
LOG_ERROR( GetEGkLogger(), sOut.c_str()) ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
@@ -107,7 +96,7 @@ GeomDB::Load( const std::string& sFileIn)
|
||||
if ( ! LoadOneNode( TheScanner, bEnd)) {
|
||||
bOk = false ;
|
||||
string sOut = "GeomDbLoad : Error on line " + ToString( TheScanner.GetCurrLineNbr()) ;
|
||||
LOG_ERROR( m_pLogger, sOut.c_str()) ;
|
||||
LOG_ERROR( GetEGkLogger(), sOut.c_str()) ;
|
||||
}
|
||||
} while ( ! bEnd) ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user