6 gdcmDictEntry::gdcmDictEntry(guint16 InGroup, guint16 InElement,
7 string InVr, string InFourth, string InName)
14 key = TranslateToKey(group, element);
17 TagKey gdcmDictEntry::TranslateToKey(guint16 group, guint16 element) {
20 // CLEAN ME: better call the iostream<< with the hex manipulator on.
21 // This requires some reading of the stdlibC++ sources to make the
22 // proper call (or copy).
23 sprintf(trash, "%04x|%04x", group , element);
24 key = trash; // Convertion through assignement
29 * \ingroup gdcmDictEntry
30 * \brief If-and only if-the vr is unset then overwrite it.
31 * @param NewVr New vr to be set.
33 void gdcmDictEntry::SetVR(string NewVr) {
37 dbg.Error(true, "gdcmDictEntry::SetVR",
38 "Overwriting vr might compromise a dictionary");
42 bool gdcmDictEntry::IsVrUnknown() {
43 if ( vr == "Unknown" )