From: vsr Date: Thu, 29 Mar 2012 15:39:44 +0000 (+0000) Subject: Improve dev docs X-Git-Tag: V6_5_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09d02e9a98ff61c9f4ff2ecaa2f7ac42d577ae4f;p=modules%2Fkernel.git Improve dev docs --- diff --git a/src/GenericObj/SALOME_GenericObj_i.cc b/src/GenericObj/SALOME_GenericObj_i.cc index a349dec17..97515c4ce 100644 --- a/src/GenericObj/SALOME_GenericObj_i.cc +++ b/src/GenericObj/SALOME_GenericObj_i.cc @@ -20,11 +20,9 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// SALOME_GenericObj_i_CC // File : SALOME_GenericObj_i.cc -// Author : Alexey PETROV -// Module : SALOME -// +// Author : Alexey PETROV, Open CASCADE S.A.S. (alexey.petrov@opencascade.com) + #include "SALOME_GenericObj_i.hh" #include "utilities.h" @@ -34,46 +32,97 @@ static int MYDEBUG = 0; static int MYDEBUG = 0; #endif -using namespace SALOME; +namespace SALOME +{ + + /*! + \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. -GenericObj_i::GenericObj_i(PortableServer::POA_ptr thePOA): myRefCounter(1){ - if(MYDEBUG) - MESSAGE("GenericObj_i::GenericObj_i() - this = "<