From: eap Date: Mon, 24 Sep 2012 11:17:56 +0000 (+0000) Subject: 021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format) X-Git-Tag: V6_6_0a1~92 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2974c0b8ab3bffc4111d0c03f0453e6f42e17beb;p=modules%2Fsmesh.git 021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format) when setting myName, call myGroupDS->SetStoreName( myName ) --- diff --git a/src/SMESH/SMESH_Group.cxx b/src/SMESH/SMESH_Group.cxx index 7ef568593..dae4e3188 100644 --- a/src/SMESH/SMESH_Group.cxx +++ b/src/SMESH/SMESH_Group.cxx @@ -24,7 +24,6 @@ // File : SMESH_Group.cxx // Author : Michael Sazonov (OCC) // Module : SMESH -// $Header$ // #include "SMESH_Group.hxx" #include "SMESH_Mesh.hxx" @@ -60,6 +59,7 @@ SMESH_Group::SMESH_Group (int theID, myGroupDS = new SMESHDS_Group (theID, const_cast(theMesh)->GetMeshDS(), theType); + myGroupDS->SetStoreName( theName ); } //================================================================================ @@ -76,7 +76,7 @@ SMESH_Group::SMESH_Group (SMESHDS_GroupBase* groupDS): myGroupDS( groupDS ) //============================================================================= /*! - * + * Destructor deletes myGroupDS */ //============================================================================= @@ -84,3 +84,15 @@ SMESH_Group::~SMESH_Group () { delete myGroupDS; myGroupDS=0; } + +//================================================================================ +/*! + * \brief Sets a new name + */ +//================================================================================ + +void SMESH_Group::SetName (const char* theName) +{ + myName = theName; + myGroupDS->SetStoreName( theName ); +} diff --git a/src/SMESH/SMESH_Group.hxx b/src/SMESH/SMESH_Group.hxx index f378be296..edb14b900 100644 --- a/src/SMESH/SMESH_Group.hxx +++ b/src/SMESH/SMESH_Group.hxx @@ -52,7 +52,7 @@ class SMESH_EXPORT SMESH_Group SMESH_Group (SMESHDS_GroupBase* groupDS); ~SMESH_Group (); - void SetName (const char* theName) { myName = theName; } + void SetName (const char* theName); const char* GetName () const { return myName.c_str(); }