7 #include "gdcmCommon.h"
8 #include "gdcmDictEntry.h"
10 typedef map<TagKey, gdcmDictEntry*> TagKeyHT;
11 typedef map<TagName, gdcmDictEntry*> TagNameHT;
15 * \brief gdcmDict acts a memory representation of a dicom dictionary i.e.
16 * it is a container for a collection of dictionary entries. The
17 * dictionary is loaded from in an ascii file.
18 * There should be a single public dictionary (THE dictionary of
19 * the actual DICOM v3) but as many shadow dictionaries as imagers
20 * combined with all software versions...
23 class GDCM_EXPORT gdcmDict {
26 /// Access through TagKey (see alternate access with NameHt)
28 /// Access through TagName (see alternate access with KeyHt)
31 gdcmDict(string & FileName);
33 int AddNewEntry (gdcmDictEntry* NewEntry);
34 int ReplaceEntry(gdcmDictEntry* NewEntry);
35 int RemoveEntry (TagKey key);
36 int RemoveEntry (guint16 group, guint16 element);
37 gdcmDictEntry * GetTagByNumber(guint16 group, guint16 element);
38 gdcmDictEntry * GetTagByName(TagName name);
40 void PrintByKey(ostream&);
41 void PrintByName(ostream&);
42 TagKeyHT & GetEntries(void) { return KeyHt; }