]> Creatis software - gdcm.git/blobdiff - src/gdcmRefCounter.h
Forgot to update this one
[gdcm.git] / src / gdcmRefCounter.h
index ce9858acaef3bbf7c8c8715f79dfd66cb1cc1414..25ecce970a16e4be7459acea78ed082eb4c54042 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRefCounter.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/26 15:41:29 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2007/08/22 16:14:04 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
                                                                                 
 =========================================================================*/
 
-#ifndef GDCMREFCOUNTER_H
-#define GDCMREFCOUNTER_H
+#ifndef _GDCMREFCOUNTER_H_
+#define _GDCMREFCOUNTER_H_
 
 #include "gdcmBase.h"
-#include "gdcmDebug.h"
+//#include "gdcmDebug.h"
+#include <typeinfo>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 /**
@@ -48,9 +49,10 @@ public:
    /// \remarks It decrements the reference counting
    void Unregister()
    {
+//std::cout <<"================Unreg " << typeid(*this).name() << std::endl;
       RefCount--;
       if(RefCount<=0)
-         delete this;
+        delete this;
    }
    /// \brief Get the reference counting
    /// \return Reference count