EgtGeomKernel :
- aggiunta parametro in lettura/scrittura di Gruppo su Nge per futuri sviluppi.
This commit is contained in:
+9
-1
@@ -116,8 +116,11 @@ GdbGroup::Save( NgeWriter& ngeOut) const
|
||||
if ( ! GdbObj::SaveAttribs( ngeOut))
|
||||
bOk = false ;
|
||||
|
||||
// dati del riferimento
|
||||
// dati geometrici
|
||||
ngeOut.WriteKey( NGE_G) ;
|
||||
// puntatore alla prima copia (per ora NULL)
|
||||
ngeOut.WriteInt( GDB_ID_NULL, nullptr, true) ;
|
||||
// frame
|
||||
if ( ! m_gfrFrame.Save( ngeOut))
|
||||
bOk = false ;
|
||||
|
||||
@@ -160,6 +163,11 @@ GdbGroup::Load( int nNgeId, NgeReader& ngeIn, int& nParentId)
|
||||
if ( nKey != NGE_G)
|
||||
return false ;
|
||||
|
||||
// leggo il puntatore alla prima copia
|
||||
int nCopyId ;
|
||||
if ( ! ngeIn.ReadInt( nCopyId, nullptr, true))
|
||||
return false ;
|
||||
|
||||
// leggo i dati del riferimento
|
||||
return m_gfrFrame.Load( ngeIn) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user