+
+/**
+ * \brief concatenates 2 uint16_t (supposed to be a Dicom group number
+ * and a Dicom element number)
+ * @param group the Dicom group number used to build the tag
+ * @param elem the Dicom element number used to build the tag
+ * @return the built tag
+ */
+TagKey DictEntry::TranslateToKey(uint16_t group, uint16_t elem)
+{
+ // according to 'Purify', TranslateToKey is one of the most
+ // time consuming methods.
+ // Let's try to shorten it !
+
+ //return Util::Format("%04x|%04x", group, elem); // too much time !
+#if FASTTAGKEY
+ TagKey r;
+ r.tab[0] = group;
+ r.tab[1] = elem;
+ return r;
+#else
+ char res[10];
+ sprintf(res,"%04x|%04x", group, elem);
+ return res;
+#endif
+}
+