EgtGeomKernel 2.5a2 :
- aggiunte funzioni GetAllInfo per recuperare tutte le info di una entità.
This commit is contained in:
+14
-1
@@ -2887,6 +2887,19 @@ GeomDB::RemoveInfo( int nId, const string& sKey)
|
||||
return pGdbObj->RemoveInfo( sKey) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeomDB::GetAllInfo( int nId, STRVECTOR& vsInfo) const
|
||||
{
|
||||
// recupero l'oggetto
|
||||
const GdbObj* pGdbObj = GetGdbObj( nId) ;
|
||||
if ( pGdbObj == nullptr)
|
||||
return false ;
|
||||
|
||||
// recupero tutte le Info
|
||||
return pGdbObj->GetAllInfo( vsInfo) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeomDB::CopyAllInfoFrom( int nId, int nSouId)
|
||||
@@ -2896,7 +2909,7 @@ GeomDB::CopyAllInfoFrom( int nId, int nSouId)
|
||||
if ( pGdbObj == nullptr)
|
||||
return false ;
|
||||
// recupero l'oggetto sorgente
|
||||
GdbObj* pGdbObjSou = GetGdbObj( nSouId) ;
|
||||
const GdbObj* pGdbObjSou = GetGdbObj( nSouId) ;
|
||||
if ( pGdbObjSou == nullptr)
|
||||
return false ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user