EgtGeomKernel :

- aggiunta parametro in lettura/scrittura di Gruppo su Nge per futuri sviluppi.
This commit is contained in:
Dario Sassi
2014-04-16 12:28:53 +00:00
parent 5a49a486bf
commit ef6300a3bc
+9 -1
View File
@@ -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) ;
}