1 ////////////////////////////////////////////////////////////////////////////
2 // A single DICOM dictionary i.e. a container for a collection of dictionary
3 // entries. There should be a single public dictionary (THE dictionary of
4 // the actual DICOM v3) but as many shadow dictionaries as imagers
5 // combined with all software versions...
11 #include "gdcmCommon.h"
12 #include "gdcmDictEntry.h"
14 typedef map<TagKey, gdcmDictEntry*> TagKeyHT;
15 typedef map<TagName, gdcmDictEntry*> TagNameHT;
17 /// Build a memory representation of a dicom dictionary by parsing
19 class GDCM_EXPORT gdcmDict {
22 /// Access through TagKey (see alternate access with NameHt)
24 /// Access through TagName (see alternate access with KeyHt)
27 gdcmDict(string & FileName);
29 int AddNewEntry (gdcmDictEntry* NewEntry);
30 int ReplaceEntry(gdcmDictEntry* NewEntry);
31 int RemoveEntry (TagKey key);
32 int RemoveEntry (guint16 group, guint16 element);
33 gdcmDictEntry * GetTagByNumber(guint16 group, guint16 element);
34 gdcmDictEntry * GetTagByName(TagName name);
36 void PrintByKey(ostream&);
37 void PrintByName(ostream&);
38 TagKeyHT & GetEntries(void) { return KeyHt; }