Salome HOME
add method NameChanged to update title name
[modules/kernel.git] / src / SALOMESDS / SALOMESDS_RefCountServ.hxx
index 0ec2d95ab95ab4e040ad789aa80d45cd4b19ab57..e616a83a5ee431cd2c398fa3ff0c89b361566803 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #ifndef __SALOMESDS_REFCOUNTSERV_HXX__
 #define __SALOMESDS_REFCOUNTSERV_HXX__
 
-#include <omniORB4/CORBA.h>
+#include "SALOMESDS_AutoRefCountPtr.hxx"
 
 namespace SALOMESDS
 {
-  class RefCountServ : public virtual PortableServer::ServantBase
+  class RefCountServ : public virtual PortableServer::ServantBase, public POAHolder
   {
   public:
     void incrRef() const;
     bool decrRef() const;
-    virtual PortableServer::POA_var getPOA() = 0;
+    int getCounter() const { return _cnt; }
   protected:
-    void enforcedRelease();
     RefCountServ();
     RefCountServ(const RefCountServ& other);
     virtual ~RefCountServ();