Salome HOME
Update copyright information
[modules/smesh.git] / src / SMESH / SMESH_subMeshEventListener.hxx
index a978c4591555c05366df2cb6f19bb86a9a5543bc..ae911cfefbde029507c776f3b7a214bdcf4c444d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  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
@@ -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
@@ -79,8 +87,10 @@ struct SMESH_subMeshEventListenerData
 {
   bool myIsDeletable; //!< if true, it will be deleted by SMESH_subMesh
   int myType;         //!< to recognize data type
-  std::list<SMESH_subMesh*> mySubMeshes; //!< generally: submeshes depending
-                                         // on the one storing this data
+  std::list<SMESH_subMesh*> mySubMeshes; /* generally: submeshes depending
+                                            on the one storing this data;
+                                            !! they are used to track intermesh
+                                            dependencies at mesh loading as well !! */
 public:
   SMESH_subMeshEventListenerData(bool isDeletable):myIsDeletable(isDeletable) {}
   virtual ~SMESH_subMeshEventListenerData() {}