X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=src%2FgdcmDicomEntry.h;h=f7744f29ac8c63d02a631e33e0d2da6ae14d5db1;hb=9f28ad122dd01f096e4e5ca18d46aa7a8a0a07fc;hp=d74dca86cc1925d733f6de829445d1d9c3bcd8c3;hpb=9aa702d6397e3e490263a0791dd6c8ed2f3d1e83;p=gdcm.git diff --git a/src/gdcmDicomEntry.h b/src/gdcmDicomEntry.h index d74dca86..f7744f29 100644 --- a/src/gdcmDicomEntry.h +++ b/src/gdcmDicomEntry.h @@ -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;