+//#define IS_OBJ_IN_QUESTION(where) is_obj_in_question(this, myRefCounter, where)
+#define IS_OBJ_IN_QUESTION(where)
+
+namespace SALOME
+{
+ void is_obj_in_question( const GenericObj_i* o, int myRefCounter,const char* where)
+ {
+ if ( std::string( typeid(*o).name() ).find("SALOMEDS") != std::string::npos )
+ return;
+ // if ( std::string( typeid(*o).name() ).find("SMESH_") != std::string::npos ||
+ // std::string( typeid(*o).name() ).find("StdMesher") != std::string::npos )
+ {
+ std::cout<< typeid(*o).name() << " " << o << " " << where << " myRefCounter ==> " << myRefCounter;
+ if ( myRefCounter == 0 ) std::cout << " DELETE !";
+ std::cout << std::endl;
+ }
+ }
+
+ /*!
+ \class SALOME::GenericObj_i
+ \brief Implementation of the base servant for SALOME objects with reference counter.
+
+ This class can be used to implement data entities with life-cycle management based on
+ the reference counting.
+
+ The object is initially created with the reference counter equal to 1.
+ The function Register() can be used to incrfement the reference counter.
+ Function UnRegister() should be used to decrement reference counter.
+ As soon as reference counter goes to zero, the object is automatically deactivated in POA
+ (and, eventually its destructor is automatically called).
+ */
+
+ /*!
+ \brief Constructor.
+ Creates an object with the reference counter initially set to 1.
+
+ The default POA for the servant can be passed as a parameter \a thePOA.
+ By default, root POA is used.