]> Creatis software - gdcm.git/blobdiff - src/gdcmDictEntry.h
* Add a RefCounter object that is deleted only when it's reference count is
[gdcm.git] / src / gdcmDictEntry.h
index 2be34877348a41cc5102059deda8185d8573c4e0..9c0e679fe87f30fbf00271878e779ba79f799b5a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictEntry.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/19 13:17:04 $
-  Version:   $Revision: 1.38 $
+  Date:      $Date: 2005/10/20 15:24:08 $
+  Version:   $Revision: 1.39 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -38,8 +38,10 @@ namespace gdcm
 class GDCM_EXPORT DictEntry : public DicomEntry
 {
 public:
-   DictEntry(uint16_t group, 
-             uint16_t elem,
+   gdcmTypeMacro(DictEntry);
+
+public:
+   static DictEntry *New(uint16_t group, uint16_t elem,
              VRKey const &vr       = GDCM_VRUNKNOWN,
              TagName const &vm     = GDCM_UNKNOWN,
              TagName const &name   = GDCM_UNKNOWN);
@@ -62,7 +64,13 @@ public:
    ///         e.g. "Patient Name" for Dicom Tag (0x0010, 0x0010) 
    /// @return the Dicom Name
    const TagName &GetName() const { return Name; } 
+
+protected:
+   DictEntry(uint16_t group, uint16_t elem,
+             VRKey const &vr       = GDCM_VRUNKNOWN,
+             TagName const &vm     = GDCM_UNKNOWN,
+             TagName const &name   = GDCM_UNKNOWN);
+
 private:
    /// \brief Value Multiplicity (e.g. "1", "1-n", "6")
    TagName VM;