]> Creatis software - gdcm.git/blobdiff - src/gdcmDictEntry.cxx
* FIX : sort the images in the dicom dir
[gdcm.git] / src / gdcmDictEntry.cxx
index ddef65335315a9cdf9a45473f65d968383be5c9d..0bc2afa901276bded0774da7b48255373a2a723b 100644 (file)
@@ -1,10 +1,12 @@
 // gdcmDictEntry.cxx
-
+//-----------------------------------------------------------------------------
 #include "gdcmDictEntry.h"
 
 #include <stdio.h>    // FIXME For sprintf
 #include "gdcmUtil.h"
 
+//-----------------------------------------------------------------------------
+// Constructor / Destructor
 /**
  * \ingroup gdcmDictEntry
  * \brief   Construtor
 gdcmDictEntry::gdcmDictEntry(guint16 InGroup, guint16 InElement,
                              std::string  InVr, std::string InFourth,
                              std::string  InName) {
-       group           = InGroup;
+       group   = InGroup;
        element         = InElement;
        vr              = InVr;
-       fourth          = InFourth;
+       fourth  = InFourth;
        name            = InName;
        key             = TranslateToKey(group, element);
 }
 
+//-----------------------------------------------------------------------------
+// Print
+
+//-----------------------------------------------------------------------------
+// Public
 /**
  * \ingroup gdcmDictEntry
  * \brief   concatenates 2 guint16 (supposed to be a Dicom group number 
  *                                             and a Dicom element number)
  * @param  group the Dicom group   number used to build the tag
- * @param  group the Dicom element number used to build the tag
+ * @param  element the Dicom element number used to build the tag
  * return the built tag
  */
 
@@ -53,11 +60,22 @@ TagKey gdcmDictEntry::TranslateToKey(guint16 group, guint16 element) {
  *              is unset then overwrite it.
  * @param NewVr New V(alue) R(epresentation) to be set.
  */
-void gdcmDictEntry::SetVR(std::string NewVr) {
-       if ( IsVrUnknown() )
+void gdcmDictEntry::SetVR(std::string NewVr) 
+{
+       if ( IsVRUnknown() )
                vr = NewVr;
-       else {
+       else 
+   {
                dbg.Error(true, "gdcmDictEntry::SetVR",
                          "Overwriting vr might compromise a dictionary");
        }
 }
+
+//-----------------------------------------------------------------------------
+// Protected
+
+//-----------------------------------------------------------------------------
+// Private
+
+//-----------------------------------------------------------------------------
+