]> Creatis software - gdcm.git/blobdiff - src/gdcmDictEntry.h
RLEFrame RLEFramesInfo declare File as friend.
[gdcm.git] / src / gdcmDictEntry.h
index 2be34877348a41cc5102059deda8185d8573c4e0..e2cecb8fc17098b7ee3bd3348a1f768fea65d21e 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/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