]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomEntry.h
* bug fix in the Python demos, due to the recent changes
[gdcm.git] / src / gdcmDicomEntry.h
index d74dca86cc1925d733f6de829445d1d9c3bcd8c3..f7744f29ac8c63d02a631e33e0d2da6ae14d5db1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomEntry.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/19 13:17:05 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/10/21 07:38:00 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,7 +20,7 @@
 #define GDCMDICOMENTRY_H
 
 #include "gdcmCommon.h"
-#include "gdcmBase.h"
+#include "gdcmRefCounter.h"
 #include "gdcmVRKey.h"
 #include "gdcmTagKey.h"
 
@@ -38,13 +38,12 @@ namespace gdcm
  *  - the VM (Value Multplicity)
  *  - the corresponding name in english
  */
-class GDCM_EXPORT DicomEntry : public Base
+class GDCM_EXPORT DicomEntry : public RefCounter
 {
 public:
-   DicomEntry(const uint16_t &group,const uint16_t &elt,
-              const VRKey &vr = GDCM_VRUNKNOWN);
-   ~DicomEntry();
+   gdcmTypeMacro(DicomEntry)
 
+public:
 // Print
    void Print(std::ostream &os = std::cout, std::string const &indent = "");
 
@@ -71,6 +70,11 @@ public:
 // Key creation
    static TagKey TranslateToKey(uint16_t group, uint16_t elem);
 
+protected:
+   DicomEntry(const uint16_t &group,const uint16_t &elt,
+              const VRKey &vr = GDCM_VRUNKNOWN);
+   ~DicomEntry();
+
 private:
    /// Dicom \ref TagKey. Contains DicomGroup number and DicomElement number
    TagKey Tag;