- gdcmDict(std::string & FileName);
- ~gdcmDict();
- int AddNewEntry (gdcmDictEntry* NewEntry);
- int ReplaceEntry(gdcmDictEntry* NewEntry);
- int RemoveEntry (TagKey key);
- int RemoveEntry (guint16 group, guint16 element);
- gdcmDictEntry * GetTagByNumber(guint16 group, guint16 element);
- gdcmDictEntry * GetTagByName(TagName name);
- void Print(std::ostream&);
- void PrintByKey(std::ostream&);
- void PrintByName(std::ostream&);
- TagKeyHT & GetEntries(void) { return KeyHt; }
+ Dict(void);
+ Dict(std::string const & filename);
+ ~Dict();
+
+// Print
+ void Print(std::ostream &os = std::cout, std::string const & indent = "");
+
+// Entries
+ void ClearEntry ();
+ bool AddNewEntry (DictEntry const &newEntry);
+ bool ReplaceEntry(DictEntry const &newEntry);
+ bool RemoveEntry (TagKey const &key);
+ bool RemoveEntry (uint16_t group, uint16_t element);
+
+// Tag
+ DictEntry *GetDictEntry(uint16_t group, uint16_t element);
+
+ // EntryNamesList *GetDictEntryNames();
+ // EntryNamesByCatMap *GetDictEntryNamesByCategory();
+
+ /// \brief Returns a ref to the Dicom Dictionary H table (map)
+ /// @return the Dicom Dictionary H table
+ //const TagKeyHT & GetEntries() const { return KeyHt; }
+
+ void InitTraversal();
+ DictEntry *GetNextEntry();
+
+private:
+ /// ASCII file holding the Dictionnary
+ std::string Filename;
+
+ /// Access through TagKey
+ TagKeyHT KeyHt;
+ TagKeyHT::iterator ItKeyHt;