- gdcmDictEntry(guint16 group,
- guint16 element,
- std::string vr = "Unknown",
- std::string fourth = "Unknown",
- std::string name = "Unknown");
-
- // fabrique une 'clé' par concaténation du numGroupe et du numElement
-
- // Pourquoi fait-elle partie de DictEntry?
- // elle pourrait etre utilisée egalement ailleurs, hors tout Dictionnaire
-
- // Pourquoi 'static'?
-
- static TagKey TranslateToKey(guint16 group, guint16 element);
-
- guint16 GetGroup(void) {return group; };
- guint16 GetElement(void){return element;};
- std::string GetVR(void) {return vr; };
- void SetVR(std::string);
- void SetKey(std::string k){ key = k; };
- bool IsVrUnknown(void);
- std::string GetFourth(void) {return fourth;};
- std::string GetName(void) {return name; };
- std::string GetKey(void) {return key; };
-};
+ static DictEntry *New(uint16_t group, uint16_t elem,
+ VRKey const &vr = GDCM_VRUNKNOWN,
+ TagName const &vm = GDCM_UNKNOWN,
+ TagName const &name = GDCM_UNKNOWN);
+
+// Print
+ void Print(std::ostream &os = std::cout, std::string const &indent = "");
+
+// Content of DictEntry
+ virtual void SetVR(VRKey const &vr);
+ virtual void SetVM(TagName const &vm);
+ /// \brief returns the VM field of the current DictEntry
+ /// @return The 'Value Multiplicity' field
+ const TagName &GetVM() const { return VM; }
+
+ /// \brief tells if the V(alue) M(ultiplicity) is known (?!)
+ /// @return
+ bool IsVMUnknown() const { return VM == GDCM_UNKNOWN; }