3 #ifndef GDCMDICTENTRY_H
4 #define GDCMDICTENTRY_H
6 #include "gdcmCommon.h"
8 class GDCM_EXPORT gdcmDictEntry {
10 guint16 group; // e.g. 0x0010
11 guint16 element; // e.g. 0x0103
12 string vr; // Value Representation i.e. some clue about the nature
13 // of the data represented e.g. "FD" short for
14 // "Floating Point Double"
15 // CLEANME: find the official dicom name for this field !
16 string fourth; // Fourth field containing some semantics.
17 string name; // e.g. "Patient_Name"
18 TagKey key; // Redundant with (group, element) but we add it
19 // on efficiency purposes.
20 // DCMTK has many fields for handling a DictEntry (see below). What are the
21 // relevant ones for gdcmlib ?
22 // struct DBI_SimpleEntry {
24 // Uint16 upperElement;
26 // const char* tagName;
29 // const char* standardVersion;
30 // DcmDictRangeRestriction groupRestriction;
31 // DcmDictRangeRestriction elementRestriction;
34 gdcmDictEntry(guint16 group,
36 string vr = "Unknown",
37 string fourth = "Unknown",
38 string name = "Unknown");
39 // fabrique une 'clé' par concaténation du numGroupe et du numElement
40 static TagKey TranslateToKey(guint16 group, guint16 element);
42 guint16 GetGroup(void) { return group; };
43 guint16 GetElement(void){return element;};
44 string GetVR(void) {return vr; };
46 void SetKey(string k){ key = k; }
47 bool IsVrUnknown(void);
48 string GetFourth(void) {return fourth;};
49 string GetName(void) {return name; };
50 string GetKey(void) {return key; };