X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictEntry.h;h=e2cecb8fc17098b7ee3bd3348a1f768fea65d21e;hb=f80897f63dcbc709e372abe4a248ddbff9f2b33c;hp=2be34877348a41cc5102059deda8185d8573c4e0;hpb=9aa702d6397e3e490263a0791dd6c8ed2f3d1e83;p=gdcm.git diff --git a/src/gdcmDictEntry.h b/src/gdcmDictEntry.h index 2be34877..e2cecb8f 100644 --- a/src/gdcmDictEntry.h +++ b/src/gdcmDictEntry.h @@ -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/11/05 13:24:39 $ + Version: $Revision: 1.43 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -32,14 +32,15 @@ namespace gdcm * 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 DictEntry : public DicomEntry { + gdcmTypeMacro(DictEntry); + public: - DictEntry(uint16_t group, - uint16_t elem, + 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,12 +63,18 @@ 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") + /// \brief Value Multiplicity (e.g. "1", "1-n", "2-n", "6") TagName VM; - /// e.g. "Patient's Name" + /// \brief English name of the entry (e.g. "Patient's Name") TagName Name; }; } // end namespace gdcm