// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
// Module : SMESH
// $Header:
-using namespace std;
#include "SMESHDS_Document.hxx"
-#include <utilities.h>
+#include "utilities.h"
+
+using namespace std;
//=======================================================================
//function : Create
{
}
+//=======================================================================
+//function : Destructor
+//purpose :
+//=======================================================================
+
+SMESHDS_Document::~SMESHDS_Document()
+{
+ InitMeshesIterator();
+ while ( MoreMesh() )
+ delete NextMesh();
+}
+
//=======================================================================
//function : NewMesh
//purpose :
//=======================================================================
-int SMESHDS_Document::NewMesh()
+int SMESHDS_Document::NewMesh(bool theIsEmbeddedMode)
{
- static int NewMeshID = 0;
- NewMeshID++;
- SMESHDS_Mesh *aNewMesh = new SMESHDS_Mesh(NewMeshID);
- myMeshes[NewMeshID] = aNewMesh;
- return NewMeshID;
+ static int aNewMeshID = 0;
+ aNewMeshID++;
+ SMESHDS_Mesh *aNewMesh = new SMESHDS_Mesh(aNewMeshID,theIsEmbeddedMode);
+ myMeshes[aNewMeshID] = aNewMesh;
+ return aNewMeshID;
}
//=======================================================================