]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESH/SMESH_subMeshEventListener.hxx
Salome HOME
0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis
[modules/smesh.git] / src / SMESH / SMESH_subMeshEventListener.hxx
index 3ac23b623ea98259579d45d82e6310f8c424e0d9..bc3246a99aa6e57095f9763403d3cbd9382ccd2d 100644 (file)
@@ -47,8 +47,16 @@ class SMESH_EXPORT SMESH_subMeshEventListener
   bool myIsDeletable; //!< if true, it will be deleted by SMESH_subMesh
   mutable std::set<SMESH_subMesh*> myBusySM; //!< to avoid infinite recursion via events
   friend class SMESH_subMesh;
-public:
-  SMESH_subMeshEventListener(bool isDeletable):myIsDeletable(isDeletable) {}
+#ifdef _DEBUG_
+  const char* myName; //!< identifier used for debug
+#endif
+
+ public:
+  SMESH_subMeshEventListener(bool isDeletable, const char* name) :myIsDeletable(isDeletable)
+#ifdef _DEBUG_
+    ,myName(name)
+#endif
+  {}
   bool IsDeletable() const { return myIsDeletable; }
   /*!
    * \brief Do something on a certain event
@@ -59,7 +67,7 @@ public:
    * \param hyp - hypothesis, if eventType is algo_event
    * 
    * The base implementation (see SMESH_subMesh.cxx) translates CLEAN event
-   * to the subMesh stored in the listener data. Also it sends SUBMESH_COMPUTED
+   * to the subMeshes stored in the listener data. Also it sends SUBMESH_COMPUTED
    * event in case of successful COMPUTE event.
    */
   virtual void ProcessEvent(const int          event,