X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Group.cxx;h=9a0198ba2ffc822d10c4d83a2bd6a4d4dc80ab1c;hb=a11ec0f515b86d30e1617e522a2294d3320cb3c7;hp=5ab9b683dc33aa9743dd89b6cb458522d086ddb2;hpb=04f997252152407f9180e03f0af428ab2ca6f4be;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Group.cxx b/src/SMESH/SMESH_Group.cxx index 5ab9b683d..9a0198ba2 100644 --- a/src/SMESH/SMESH_Group.cxx +++ b/src/SMESH/SMESH_Group.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -64,7 +64,7 @@ SMESH_Group::SMESH_Group (int theID, //================================================================================ /*! - * \brief Constructor accesible to SMESH_Mesh only + * \brief Constructor accessible to SMESH_Mesh only */ //================================================================================ @@ -96,3 +96,14 @@ void SMESH_Group::SetName (const char* theName) myName = theName; myGroupDS->SetStoreName( theName ); } + +//================================================================================ +/*! + * \brief Return persistent group ID. It is negative if no SMESHDS_GroupBase exist + */ +//================================================================================ + +int SMESH_Group::GetID() const +{ + return myGroupDS ? myGroupDS->GetID() : -1; +}