// 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
*/
* 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
+
+//-----------------------------------------------------------------------------
+