4 gdcmDictEntry::gdcmDictEntry(guint16 InGroup, guint16 InElement,
5 string InVr, string InFourth, string InName)
12 key = TranslateToKey(group, element);
15 TagKey gdcmDictEntry::TranslateToKey(guint16 group, guint16 element) {
18 // CLEAN ME: better call the iostream<< with the hex manipulator on.
19 // This requires some reading of the stdlibC++ sources to make the
20 // proper call (or copy).
21 sprintf(trash, "%04x|%04x", group , element);
22 key = trash; // Convertion through assignement
27 * \ingroup gdcmDictEntry
28 * \brief If-and only if-the vr is unset then overwrite it.
29 * @param NewVr New vr to be set.
31 void gdcmDictEntry::SetVR(string NewVr) {
35 dbg.Error(true, "gdcmDictEntry::SetVR",
36 "Overwriting vr might compromise a dictionary");
40 bool gdcmDictEntry::IsVrUnknown() {
41 if ( vr == "Unknown" )