X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomEntry.h;h=dca0d81918bb6a77c4d69352d92cf47e695a3a97;hb=8e2b9f42a777285d09024aaecb1a38327c767cff;hp=d74dca86cc1925d733f6de829445d1d9c3bcd8c3;hpb=9aa702d6397e3e490263a0791dd6c8ed2f3d1e83;p=gdcm.git diff --git a/src/gdcmDicomEntry.h b/src/gdcmDicomEntry.h index d74dca86..dca0d819 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/23 15:32:30 $ + Version: $Revision: 1.7 $ 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" @@ -29,22 +29,21 @@ namespace gdcm //----------------------------------------------------------------------------- /** * \brief - * the DicomEntry in an element contained by the Dict. + * a DicomEntry is an element contained by the Dict. * It contains : - * - the key referenced by the DICOM norm or the constructor (for private keys) - * i.e. the Group number - * the Element number + * - the key referenced by the DICOM norm or the manufacturer(for private keys) + * i.e. + * - - the Group number + * - - the Element number * - the VR (Value Representation) - * - the VM (Value Multplicity) + * - the VM (Value Multiplicity) * - 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,14 +70,19 @@ 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 + /// Dicom \ref TagKey. Contains Dicom Group number and Dicom Element number TagKey Tag; /// \brief Value Representation i.e. some clue about the nature /// of the data represented e.g. - /// "FD" short for "Floating Point Double"(see \ref VR) - /// "PN" short for "Person Name" + /// - "FD" short for "Floating Point Double"(see \ref VR) + /// - "PN" short for "Person Name" VRKey VR; }; } // end namespace gdcm