-TagKey gdcmDictEntry::TranslateToKey(guint16 group, guint16 element) {
- char trash[10];
- TagKey key;
- // CLEAN ME: better call the iostream<< with the hex manipulator on.
- // This requires some reading of the stdlibC++ sources to make the
- // proper call (or copy).
- sprintf(trash, "%04x|%04x", group , element);
- key = trash; // Convertion through assignement
- return key;
+//-----------------------------------------------------------------------------
+// Constructor / Destructor
+/**
+ * \brief Constructor
+ * @param group DICOM-Group Number
+ * @param element DICOM-Element Number
+ * @param vr Value Representatiion
+ * @param fourth // DO NOT use any longer;
+ * NOT part of the Dicom Standard
+ * @param name description of the element
+*/
+
+DictEntry::DictEntry(uint16_t group, uint16_t element,
+ TagName const & vr, TagName const & fourth,
+ TagName const & name)
+{
+ Group = group;
+ Element = element;
+ VR = vr;
+ Fourth = fourth;
+ Name = name;
+ Key = TranslateToKey(group, element);