-public:
- SMESH_subMeshEventListener(bool isDeletable):myIsDeletable(isDeletable) {}
- bool IsDeletable() const { return myIsDeletable; }
+ mutable std::set<SMESH_subMesh*> myBusySM; //!< to avoid infinite recursion via events
+ const char* myName; //!< identifier
+ friend class SMESH_subMesh;
+
+ public:
+ SMESH_subMeshEventListener(bool isDeletable, const char* name)
+ :myIsDeletable(isDeletable), myName(name) {}
+ virtual ~SMESH_subMeshEventListener() {}
+ bool IsDeletable() const { return myIsDeletable; }
+ const char* GetName() const { return myName; }
+ virtual void BeforeDelete(SMESH_subMesh* /*subMesh*/,
+ SMESH_subMeshEventListenerData* /*data*/)
+ {}