021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format)

when setting myName, call myGroupDS->SetStoreName( myName )
This commit is contained in:
eap 2012-09-24 11:17:56 +00:00
parent dce6fb4fd7
commit 2974c0b8ab
2 changed files with 15 additions and 3 deletions

View File

@ -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<SMESH_Mesh*>(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 );
}

View File

@ -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(); }