EgtGeomKernel 1.5j7 :

- aggiunta gestione copia attributi di oggetti.
This commit is contained in:
Dario Sassi
2014-11-05 17:00:05 +00:00
parent dd0496d5eb
commit 4c68e36219
5 changed files with 36 additions and 0 deletions
+16
View File
@@ -1384,6 +1384,22 @@ GeomDB::DumpAttributes( int nId, string& sOut, const char* szNewLine) const
}
}
//----------------------------------------------------------------------------
bool
GeomDB::CopyAttributes( int nIdSou, int nIdDest)
{
// verifico esistenza del sorgente
GdbObj* pGdOSou = GetGdbObj( nIdSou) ;
if ( pGdOSou == nullptr)
return false ;
// verifico esistenza della destinazione
GdbObj* pGdODest = GetGdbObj( nIdDest) ;
if ( pGdODest == nullptr)
return false ;
// eseguo la copia
return pGdODest->CopyAttribsFrom( pGdOSou) ;
}
//----------------------------------------------------------------------------
bool
GeomDB::SetLevel( int nId, int nLevel)