X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Group.cxx;h=ccc79473dffbd3b7ca0bee3246197887938f9a16;hp=5ab9b683dc33aa9743dd89b6cb458522d086ddb2;hb=6d32f944a0a115b6419184c50b57bf7c4eef5786;hpb=7a3ecab720cc517ace17c5c4677fd3c20c0051ee diff --git a/src/SMESH/SMESH_Group.cxx b/src/SMESH/SMESH_Group.cxx index 5ab9b683d..ccc79473d 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-2019 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; +}